]> git.puffer.fish Git - mirror/frr.git/commit
isisd: fix logging of uninitialized data in the TI-LFA code
authorRenato Westphal <renato@opensourcerouting.org>
Tue, 8 Dec 2020 14:54:32 +0000 (11:54 -0300)
committerRenato Westphal <renato@opensourcerouting.org>
Sat, 9 Jan 2021 01:22:11 +0000 (22:22 -0300)
commit816c583f27a9315d523e88184bb686ed14cb93ed
tree89e0654965b2492539deb13ab8264c25b363eae0
parent6c87fb38f3b4c0ab62f1c0b57f82f0014b098aa1
isisd: fix logging of uninitialized data in the TI-LFA code

Always call vid2string() whenever necessary instead of trying to be
too clever and call it only once. The original assumption was that
"buf" only needed to be initialized when LFA debugging was enabled,
but we also need that buffer when logging one error message.

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