]> git.proxmox.com Git - mirror_frr.git/commit
zebra: fix logging of MPLS labels
authorRenato Westphal <renato@opensourcerouting.org>
Wed, 20 Sep 2017 03:02:01 +0000 (00:02 -0300)
committerRenato Westphal <renato@opensourcerouting.org>
Mon, 9 Oct 2017 23:15:14 +0000 (20:15 -0300)
commit9a62e84b5b6379ff3419da8f52728b95f31bacf3
treed7d165fe5fcaaaab13bd064a56c943e6a9f59d4d
parent09d0f308ce8e1bb1fcfd4abd5302dad57bd1d4b8
zebra: fix logging of MPLS labels

* use %u instead of %d, we don't want to print negative labels;
* increase the size of label_buf to accommodate the worst case scenarios;
* use strlcat() instead of strcat() as a security best practice.

Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
zebra/rt_netlink.c