From 1aa3f6b199043adfa82f9888cbd27414242601c0 Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Mon, 14 Mar 2022 15:51:13 -0400 Subject: [PATCH] pimd: A wrong address family means the register-stop receive fails The current code in pim_register_stop_recv would never fail as that the code was always returning 0 in all cases, but if the code parses an incorrect afi then it has failed and should return as much Signed-off-by: Donald Sharp --- pimd/pim_register.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pimd/pim_register.c b/pimd/pim_register.c index 4bd0842017..7fa36e5a44 100644 --- a/pimd/pim_register.c +++ b/pimd/pim_register.c @@ -153,7 +153,7 @@ int pim_register_stop_recv(struct interface *ifp, uint8_t *buf, int buf_size) if (wrong_af) { zlog_err("invalid AF in Register-Stop on %s", ifp->name); - return 0; + return -1; } -- 2.39.5