diff options
author | Donatas Abraitis <donatas@opensourcerouting.org> | 2022-05-11 12:10:23 +0200 |
---|---|---|
committer | Donatas Abraitis <donatas@opensourcerouting.org> | 2022-05-11 12:10:41 +0200 |
commit | b5605493a4f627b011b73c6c536bbb1f140e365d (patch) | |
tree | de25186b863d88d5d60345cc4f65af32aac8e71b /bgpd | |
parent | Merge pull request #11151 from opensourcerouting/pim-various-20220506 (diff) | |
download | frr-b5605493a4f627b011b73c6c536bbb1f140e365d.tar.xz frr-b5605493a4f627b011b73c6c536bbb1f140e365d.zip |
bgpd: Use sizeof() for memset instead of numeric
Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
Diffstat (limited to 'bgpd')
-rw-r--r-- | bgpd/bgp_evpn.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bgpd/bgp_evpn.c b/bgpd/bgp_evpn.c index 4a1e30292..ddb34258c 100644 --- a/bgpd/bgp_evpn.c +++ b/bgpd/bgp_evpn.c @@ -4167,7 +4167,7 @@ static void evpn_mpattr_encode_type5(struct stream *s, const struct prefix *p, char temp[16]; const struct evpn_addr *p_evpn_p; - memset(&temp, 0, 16); + memset(&temp, 0, sizeof(temp)); if (p->family != AF_EVPN) return; p_evpn_p = &(p->u.prefix_evpn); |