summaryrefslogtreecommitdiffstats
path: root/zebra/rt_netlink.c
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@opensourcerouting.org>2017-06-13 10:05:51 +0200
committerDavid Lamparter <equinox@opensourcerouting.org>2017-06-13 10:05:51 +0200
commit063221b5ad2d15afed87ed61f24486eb7690e5ea (patch)
tree3ab93d122bf10754f4454d494bb0f4405c04a4e8 /zebra/rt_netlink.c
parentMerge pull request #678 (diff)
parentzebra: Fix memory leak (diff)
downloadfrr-063221b5ad2d15afed87ed61f24486eb7690e5ea.tar.xz
frr-063221b5ad2d15afed87ed61f24486eb7690e5ea.zip
Merge pull request #700 "Coverity high"
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'zebra/rt_netlink.c')
-rw-r--r--zebra/rt_netlink.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/zebra/rt_netlink.c b/zebra/rt_netlink.c
index 9bad7991a..8c2b986a2 100644
--- a/zebra/rt_netlink.c
+++ b/zebra/rt_netlink.c
@@ -307,6 +307,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)
{