From: Donald Sharp Date: Mon, 15 Aug 2022 16:46:18 +0000 (-0400) Subject: watchfrr: Check that the operational timeout specified is good. X-Git-Tag: base_8.4~130^2 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=7a8120da5a059f0f4cb11a2e52b1ff51ae8e6619;p=mirror%2Ffrr.git watchfrr: Check that the operational timeout specified is good. Signed-off-by: Donald Sharp --- diff --git a/watchfrr/watchfrr.c b/watchfrr/watchfrr.c index fc285c748a..423f25faa2 100644 --- a/watchfrr/watchfrr.c +++ b/watchfrr/watchfrr.c @@ -1429,7 +1429,7 @@ int main(int argc, char **argv) if ((sscanf(optarg, "%ld%1s", &gs.operational_timeout, garbage) != 1) || - (gs.max_restart_interval < 0)) { + (gs.operational_timeout < 0)) { fprintf(stderr, "Invalid Operational_timeout argument: %s\n", optarg);