summaryrefslogtreecommitdiff
path: root/zebra/zebra_rib.c
diff options
context:
space:
mode:
authorDonald Sharp <donaldsharp72@gmail.com>2022-05-13 07:40:58 -0400
committerGitHub <noreply@github.com>2022-05-13 07:40:58 -0400
commitf205a2309c7dc961216417fb49b4639892b219be (patch)
tree9a9839c3e141e990c96c43a1788ce9c6d95ea84b /zebra/zebra_rib.c
parent69df174216b5829d3075765e0dba30d16f20e25c (diff)
parent6006b807b1a84d31611173b837fafcd96ba9d692 (diff)
Merge pull request #11177 from opensourcerouting/fix/memset_memcpy
*: memcpy/memset zeroing
Diffstat (limited to 'zebra/zebra_rib.c')
-rw-r--r--zebra/zebra_rib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/zebra/zebra_rib.c b/zebra/zebra_rib.c
index 2732967ee6..e1da92403e 100644
--- a/zebra/zebra_rib.c
+++ b/zebra/zebra_rib.c
@@ -381,7 +381,7 @@ struct route_entry *rib_match(afi_t afi, safi_t safi, vrf_id_t vrf_id,
if (!table)
return 0;
- memset(&p, 0, sizeof(struct prefix));
+ memset(&p, 0, sizeof(p));
p.family = afi;
if (afi == AFI_IP) {
p.u.prefix4 = addr->ipv4;