]> git.proxmox.com Git - mirror_frr.git/commitdiff
zebra: Make label processing guaranteed to be unique
authorDonald Sharp <sharpd@cumulusnetworks.com>
Wed, 19 Dec 2018 00:34:22 +0000 (19:34 -0500)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Wed, 19 Dec 2018 14:42:45 +0000 (09:42 -0500)
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>
zebra/rt_socket.c

index 23beeaebb717652b973b5f7d02e3d13e36fcf6c3..5ce1ddfd49056c2e77da12260d98358ddcdbf039 100644 (file)
@@ -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";