Skip to content

Commit

Permalink
zebra: Fix CID 1399335 (#1 of 1): Wrong sizeof argument (SIZEOF_MISMA…
Browse files Browse the repository at this point in the history
…TCH)

Needs to be size of correct structure (prefix instead of prefix_ipv4)

Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
  • Loading branch information
mwinter-osr committed Feb 10, 2017
1 parent fa389c2 commit 4fdeb6b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zebra/zserv.c
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit 4fdeb6b

Please sign in to comment.