From 2088c0c8a8dccd92830dccdd6b857906bd78869c Mon Sep 17 00:00:00 2001 From: Martin Winter Date: Fri, 3 Feb 2017 18:30:59 +0700 Subject: [PATCH] zebra: Fix CID 1399335 (#1 of 1): Wrong sizeof argument (SIZEOF_MISMATCH) Needs to be size of correct structure (prefix instead of prefix_ipv4) Signed-off-by: Martin Winter --- zebra/zserv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zebra/zserv.c b/zebra/zserv.c index 83d7d0f811fd..8618e5c3715a 100644 --- a/zebra/zserv.c +++ b/zebra/zserv.c @@ -1188,7 +1188,7 @@ zread_ipv4_delete (struct zserv *client, u_short length, struct zebra_vrf *zvrf) api.safi = stream_getw (s); /* IPv4 prefix. */ - memset (&p, 0, sizeof (struct prefix_ipv4)); + memset (&p, 0, sizeof (struct prefix)); p.family = AF_INET; p.prefixlen = stream_getc (s); stream_get (&p.u.prefix4, s, PSIZE (p.prefixlen));