summaryrefslogtreecommitdiffstats
path: root/nhrpd/nhrp_event.c
diff options
context:
space:
mode:
authorJoe Maimon <joe@guest.guest>2021-03-01 18:25:25 +0100
committerJafar Al-Gharaibeh <jafar@atcorp.com>2021-03-10 18:31:25 +0100
commitf0a717ce2a007784bb3966ea828e28c3bbd5df84 (patch)
treea486bbafb720d80d090409bf95db98d5248c3592 /nhrpd/nhrp_event.c
parentMerge pull request #8224 from idryzhov/fix-bfd-detect-to (diff)
downloadfrr-f0a717ce2a007784bb3966ea828e28c3bbd5df84.tar.xz
frr-f0a717ce2a007784bb3966ea828e28c3bbd5df84.zip
nhrp: enables the event system to interpret client results correctly
Signed-off-by: Joe Maimon <jmaimon@jmaimon.com>
Diffstat (limited to 'nhrpd/nhrp_event.c')
-rw-r--r--nhrpd/nhrp_event.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/nhrpd/nhrp_event.c b/nhrpd/nhrp_event.c
index 40efeb579..f784ef22d 100644
--- a/nhrpd/nhrp_event.c
+++ b/nhrpd/nhrp_event.c
@@ -63,9 +63,9 @@ static void evmgr_recv_message(struct event_manager *evmgr, struct zbuf *zb)
buf[len] = 0;
debugf(NHRP_DEBUG_EVENT, "evmgr: msg: %s", buf);
- if (sscanf(buf, "eventid=%" SCNu32, &eventid) != 1)
+ if (sscanf(buf, "eventid=%" SCNu32, &eventid) == 1)
continue;
- if (sscanf(buf, "result=%63s", result) != 1)
+ if (sscanf(buf, "result=%63s", result) == 1)
continue;
}
debugf(NHRP_DEBUG_EVENT, "evmgr: received: eventid=%d result=%s",