Enforce the absolute lower limit for the announce receipt timeout.

Signed-off-by: Richard Cochran <richardcochran@gmail.com>
master
Richard Cochran 2013-08-26 13:31:03 +02:00
parent 78d3669b06
commit 7e69672a88
1 changed files with 1 additions and 1 deletions

View File

@ -90,7 +90,7 @@ static enum parser_result parse_pod_setting(const char *option,
pod->logMinPdelayReqInterval = val;
} else if (!strcmp(option, "announceReceiptTimeout")) {
r = get_ranged_uint(value, &uval, 0, UINT8_MAX);
r = get_ranged_uint(value, &uval, 2, UINT8_MAX);
if (r != PARSED_OK)
return r;
pod->announceReceiptTimeout = uval;