]> git.puffer.fish Git - mirror/frr.git/commit
bgpd: Cleanup messages from getsockopt
authorDonald Sharp <sharpd@cumulusnetworks.com>
Fri, 11 May 2018 11:34:24 +0000 (07:34 -0400)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Fri, 11 May 2018 11:34:24 +0000 (07:34 -0400)
commit54ff5e9b020784226f1a40038a50cedd785085a1
tree1dda9785919bdfd1d093189df5a19688b508e498
parent3dc755e492093c42d0983620da810893c413c533
bgpd: Cleanup messages from getsockopt

The handling of the return codes for getsockopt was slightly wrong.

getsockopt returns -1 on error and errno is set.
What to do with the return code at that point is dependent
on what sockopt you are asking about.  In this case
status holds the error returned for SO_ERROR.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
bgpd/bgp_fsm.c