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>
This commit is contained in:
Donald Sharp 2018-12-18 19:34:22 -05:00
parent 4dd39a0ec4
commit c2519893e0

View 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";