From c2519893e0240d06c90bc7efa825875d69bdf148 Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Tue, 18 Dec 2018 19:34:22 -0500 Subject: [PATCH] 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 --- zebra/rt_socket.c | 1 + 1 file changed, 1 insertion(+) 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"; -- 2.39.5