summaryrefslogtreecommitdiff
path: root/zebra/rt_socket.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2018-12-18 19:34:22 -0500
committerDonald Sharp <sharpd@cumulusnetworks.com>2018-12-19 09:42:45 -0500
commitc2519893e0240d06c90bc7efa825875d69bdf148 (patch)
tree2f36171caf8abf878433cffc9981b3700a5d278d /zebra/rt_socket.c
parent4dd39a0ec46d3298a8c7fcda3cb94a50d0f0e533 (diff)
zebra: Make label processing guaranteed to be unique
The label processing for socket installs was not ensuring that each nexthop would not accidently use the last nexthops value. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'zebra/rt_socket.c')
-rw-r--r--zebra/rt_socket.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/zebra/rt_socket.c b/zebra/rt_socket.c
index 23beeaebb7..5ce1ddfd49 100644
--- a/zebra/rt_socket.c
+++ b/zebra/rt_socket.c
@@ -183,6 +183,7 @@ static int kernel_rtm(int cmd, const struct prefix *p,
!CHECK_FLAG(nexthop->flags, NEXTHOP_FLAG_ACTIVE))
continue;
+ smplsp = NULL;
gate = false;
char gate_buf[INET_ADDRSTRLEN] = "NULL";