diff options
author | Donald Sharp <sharpd@nvidia.com> | 2022-08-15 18:46:18 +0200 |
---|---|---|
committer | Donald Sharp <sharpd@nvidia.com> | 2022-08-15 21:45:05 +0200 |
commit | 7a8120da5a059f0f4cb11a2e52b1ff51ae8e6619 (patch) | |
tree | 146ab45abfe495f6697c3870aebb236a46a02410 /watchfrr/watchfrr.c | |
parent | pbrd: VTY_GET_CONTEXT can fail (diff) | |
download | frr-7a8120da5a059f0f4cb11a2e52b1ff51ae8e6619.tar.xz frr-7a8120da5a059f0f4cb11a2e52b1ff51ae8e6619.zip |
watchfrr: Check that the operational timeout specified is good.
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Diffstat (limited to 'watchfrr/watchfrr.c')
-rw-r--r-- | watchfrr/watchfrr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/watchfrr/watchfrr.c b/watchfrr/watchfrr.c index fc285c748..423f25faa 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); |