diff options
author | Joe Maimon <joe@guest.guest> | 2021-03-01 18:25:25 +0100 |
---|---|---|
committer | Jafar Al-Gharaibeh <jafar@atcorp.com> | 2021-03-10 18:31:25 +0100 |
commit | f0a717ce2a007784bb3966ea828e28c3bbd5df84 (patch) | |
tree | a486bbafb720d80d090409bf95db98d5248c3592 /nhrpd/nhrp_event.c | |
parent | Merge pull request #8224 from idryzhov/fix-bfd-detect-to (diff) | |
download | frr-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.c | 4 |
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", |