]> git.proxmox.com Git - mirror_frr.git/commit - ldpd/ldpe.c
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>
Wed, 26 Apr 2017 13:36:33 +0000 (10:36 -0300)
commit835a7376b732ae21ea5d033211de050d1613f444
tree46820e6cff05bc1cbbf651b086bef2d53d045f77
parent274f5abf24fd5c9c79dce4102c3dfa583a791559
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