]> git.puffer.fish Git - mirror/frr.git/commitdiff
pimd: A wrong address family means the register-stop receive fails 10792/head
authorDonald Sharp <sharpd@nvidia.com>
Mon, 14 Mar 2022 19:51:13 +0000 (15:51 -0400)
committerDonald Sharp <sharpd@nvidia.com>
Mon, 14 Mar 2022 19:52:37 +0000 (15:52 -0400)
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 <sharpd@nvidia.com>
pimd/pim_register.c

index 4bd0842017f3019226b4e10781b2c329074f0a8b..7fa36e5a44a43371834080de24927b869948b18c 100644 (file)
@@ -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;
        }