summaryrefslogtreecommitdiff
path: root/pimd/pim_mlag.c
diff options
context:
space:
mode:
Diffstat (limited to 'pimd/pim_mlag.c')
-rw-r--r--pimd/pim_mlag.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/pimd/pim_mlag.c b/pimd/pim_mlag.c
index 304e6ac6bc..78be914cee 100644
--- a/pimd/pim_mlag.c
+++ b/pimd/pim_mlag.c
@@ -583,7 +583,9 @@ static void pim_mlag_process_mlagd_state_change(struct mlag_status msg)
router->mlag_role = msg.my_role;
}
- strcpy(router->peerlink_rif, msg.peerlink_rif);
+ strlcpy(router->peerlink_rif, msg.peerlink_rif,
+ sizeof(router->peerlink_rif));
+
/* XXX - handle the case where we may rx the interface name from the
* MLAG daemon before we get the interface from zebra.
*/
@@ -767,7 +769,7 @@ static void pim_mlag_process_mroute_del(struct mlag_mroute_del msg)
int pim_zebra_mlag_handle_msg(struct stream *s, int len)
{
struct mlag_msg mlag_msg;
- char buf[ZLOG_FILTER_LENGTH_MAX];
+ char buf[80];
int rc = 0;
size_t length;