]> git.puffer.fish Git - mirror/frr.git/commit
bgpd: exit on socket bind failures 1371/head
authorDonald Sharp <sharpd@cumulusnetworks.com>
Thu, 26 Oct 2017 18:07:33 +0000 (14:07 -0400)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Thu, 26 Oct 2017 18:11:46 +0000 (14:11 -0400)
commitb3b78f6e62631e824424c10aae9d1a0792b110aa
tree5f3d0d96bfefd76475ed63eaf7b764e6062a7a93
parent6d774763d6698bf36b98e2ff26c1f27a492b8cb3
bgpd: exit on socket bind failures

When we fail to bind to port 179 we are left in a situation
where we have not saved the bgp pointer created and when
the bgp cli mode is exited we leak the memory.

Additionally there is no recovery situation here that
could be easily programmed without fundamentally changing
the code.

So let's exit and output to the log file some useful
information to hopefully clue the user in on what is
going wrong.

Fixes: #1130
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
bgpd/bgp_network.c