]> git.puffer.fish Git - matthieu/frr.git/commitdiff
pimd,pim6d: Correct the socket to send reg-stop msg
authorMobashshera Rasool <mrasool@vmware.com>
Mon, 12 Jun 2023 13:07:22 +0000 (06:07 -0700)
committerMobashshera Rasool <mrasool@vmware.com>
Tue, 13 Jun 2023 05:51:44 +0000 (22:51 -0700)
We were using the pim interface socket to send the register
stop msg, it works fine in cases where the interface on which
register msg is received and the interface on which the register-stop
msg is supposed to be sent is the same.
But when the interfaces are different, msg send fails because
the outgoing interface is not right.

Fixes: #13774
Signed-off-by: Mobashshera Rasool <mrasool@vmware.com>
pimd/pim_register.c

index b5d9df6f2ac85dc0ed14dadaca10b296378b9751..2e554de7afa3635508f7a57e29ff88b768719923 100644 (file)
@@ -85,7 +85,7 @@ void pim_register_stop_send(struct interface *ifp, pim_sgaddr *sg, pim_addr src,
                        zlog_debug("%s: No pinfo!", __func__);
                return;
        }
-       if (pim_msg_send(pinfo->pim_sock_fd, src, originator, buffer,
+       if (pim_msg_send(pinfo->pim->reg_sock, src, originator, buffer,
                         b1length + PIM_MSG_REGISTER_STOP_LEN, ifp)) {
                if (PIM_DEBUG_PIM_TRACE) {
                        zlog_debug(