Correct the warning emitted when rejecting an oversized HS desc

This commit is contained in:
Robert Ransom
2011-04-11 02:26:07 -07:00
parent 32341ac467
commit bfebc942ea
2 changed files with 7 additions and 1 deletions
+6
View File
@@ -0,0 +1,6 @@
o Minor bugfixes
- Correct the warning displayed when a rendezvous descriptor exceeds
the maximum size. Fixes bug 2750; bugfix on 0.2.1.5-alpha. Found
by John Brooks.
+1 -1
View File
@@ -3629,7 +3629,7 @@ rend_parse_v2_service_descriptor(rend_service_descriptor_t **parsed_out,
/* Check length. */
if (strlen(desc) > REND_DESC_MAX_SIZE) {
log_warn(LD_REND, "Descriptor length is %i which exceeds "
"maximum rendezvous descriptor size of %i kilobytes.",
"maximum rendezvous descriptor size of %i bytes.",
(int)strlen(desc), REND_DESC_MAX_SIZE);
goto err;
}