summaryrefslogtreecommitdiffstats
path: root/watchfrr
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@nvidia.com>2022-08-15 18:46:18 +0200
committerDonald Sharp <sharpd@nvidia.com>2022-08-15 21:45:05 +0200
commit7a8120da5a059f0f4cb11a2e52b1ff51ae8e6619 (patch)
tree146ab45abfe495f6697c3870aebb236a46a02410 /watchfrr
parentpbrd: VTY_GET_CONTEXT can fail (diff)
downloadfrr-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')
-rw-r--r--watchfrr/watchfrr.c2
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);