diff options
| author | Donald Sharp <donaldsharp72@gmail.com> | 2022-05-13 07:40:58 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-05-13 07:40:58 -0400 |
| commit | f205a2309c7dc961216417fb49b4639892b219be (patch) | |
| tree | 9a9839c3e141e990c96c43a1788ce9c6d95ea84b /zebra/zebra_mpls.c | |
| parent | 69df174216b5829d3075765e0dba30d16f20e25c (diff) | |
| parent | 6006b807b1a84d31611173b837fafcd96ba9d692 (diff) | |
Merge pull request #11177 from opensourcerouting/fix/memset_memcpy
*: memcpy/memset zeroing
Diffstat (limited to 'zebra/zebra_mpls.c')
| -rw-r--r-- | zebra/zebra_mpls.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/zebra/zebra_mpls.c b/zebra/zebra_mpls.c index de7b6a177d..8237bebf3b 100644 --- a/zebra/zebra_mpls.c +++ b/zebra/zebra_mpls.c @@ -612,7 +612,7 @@ static int nhlfe_nexthop_active_ipv4(struct zebra_nhlfe *nhlfe, return 0; /* Lookup nexthop in IPv4 routing table. */ - memset(&p, 0, sizeof(struct prefix_ipv4)); + memset(&p, 0, sizeof(p)); p.family = AF_INET; p.prefixlen = IPV4_MAX_BITLEN; p.prefix = nexthop->gate.ipv4; @@ -661,7 +661,7 @@ static int nhlfe_nexthop_active_ipv6(struct zebra_nhlfe *nhlfe, return 0; /* Lookup nexthop in IPv6 routing table. */ - memset(&p, 0, sizeof(struct prefix_ipv6)); + memset(&p, 0, sizeof(p)); p.family = AF_INET6; p.prefixlen = IPV6_MAX_BITLEN; p.prefix = nexthop->gate.ipv6; |
