diff --git a/pimd/pim_bsm.c b/pimd/pim_bsm.c index 675092dbec..ffaa858fa7 100644 --- a/pimd/pim_bsm.c +++ b/pimd/pim_bsm.c @@ -683,8 +683,13 @@ static bool pim_bsm_send_intf(uint8_t *buf, int len, struct interface *ifp, return false; } - pim_msg_send(pim_ifp->pim_sock_fd, pim_ifp->primary_address, dst_addr, - buf, len, ifp->name); + if (pim_msg_send(pim_ifp->pim_sock_fd, pim_ifp->primary_address, + dst_addr, buf, len, ifp->name)) { + zlog_warn("%s: Could not send BSM message on interface: %s", + __PRETTY_FUNCTION__, ifp->name); + return false; + } + pim_ifp->pim_ifstat_bsm_tx++; pim_ifp->pim->bsm_sent++; return true;