Enforce the absolute lower limit for the announce receipt timeout.
Signed-off-by: Richard Cochran <richardcochran@gmail.com>master
parent
78d3669b06
commit
7e69672a88
2
config.c
2
config.c
|
@ -90,7 +90,7 @@ static enum parser_result parse_pod_setting(const char *option,
|
||||||
pod->logMinPdelayReqInterval = val;
|
pod->logMinPdelayReqInterval = val;
|
||||||
|
|
||||||
} else if (!strcmp(option, "announceReceiptTimeout")) {
|
} 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)
|
if (r != PARSED_OK)
|
||||||
return r;
|
return r;
|
||||||
pod->announceReceiptTimeout = uval;
|
pod->announceReceiptTimeout = uval;
|
||||||
|
|
Loading…
Reference in New Issue