respondd: negative max timeouts are not allowed any longer
Fixes: Supplying a negative max delay caused nearly infinite delay due to an integer overflow.
This commit is contained in:
parent
92155f0c51
commit
8c1cb41e70
|
@ -592,7 +592,7 @@ int main(int argc, char **argv) {
|
|||
|
||||
case 't':
|
||||
max_multicast_delay = 1000 * strtoul(optarg, &endptr, 10);
|
||||
if (!*optarg || *endptr) {
|
||||
if (!*optarg || *endptr || max_multicast_delay > INT64_MAX) {
|
||||
fprintf(stderr, "Invalid multicast delay\n");
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue