]> git.puffer.fish Git - matthieu/frr.git/commit
ldpd: fix segfault after failed initialization
authorRenato Westphal <renato@opensourcerouting.org>
Wed, 19 Apr 2017 18:15:56 +0000 (15:15 -0300)
committerRenato Westphal <renato@opensourcerouting.org>
Mon, 5 Jun 2017 15:23:18 +0000 (12:23 -0300)
commitb3121cd7d14f28cad53d39d9fbf09b036d3e95c9
tree7c50b98430e82582c6d1c3e5be784f7d635cdc00
parente75f810c2f6d3322e981c3e50f7d87f181005461
ldpd: fix segfault after failed initialization

When ldpd fails to start for some reason, like failing to create a pid
file, the child processes call their shutdown functions without being
completely initialized. This patch adds some protections to prevent a
segmentation fault on such circumstances.

Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
ldpd/lde.c
ldpd/ldpe.c