zebra: Fix uninitialized memory access with src_p

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
This commit is contained in:
Donald Sharp 2017-06-10 16:36:32 -04:00
parent 4dfa484627
commit 43cb4d1106

View File

@ -296,6 +296,8 @@ netlink_route_change_read_unicast (struct sockaddr_nl *snl, struct nlmsghdr *h,
p.family = AF_INET;
memcpy (&p.u.prefix4, dest, 4);
p.prefixlen = rtm->rtm_dst_len;
src_p.prefixlen = 0; // Forces debug below to not display anything
}
else if (rtm->rtm_family == AF_INET6)
{