Skip to content

Commit

Permalink
Enforce the absolute lower limit for the announce receipt timeout.
Browse files Browse the repository at this point in the history
Signed-off-by: Richard Cochran <[email protected]>
  • Loading branch information
richardcochran committed Aug 26, 2013
1 parent 78d3669 commit 7e69672
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 7e69672

Please sign in to comment.