summaryrefslogtreecommitdiffstats
path: root/ldpd
diff options
context:
space:
mode:
authorMark Stapp <mjs@voltanet.io>2019-01-16 22:35:10 +0100
committerMark Stapp <mjs@voltanet.io>2019-01-16 22:35:10 +0100
commitc00ba1da70faddb062e75b2cd7c4546ab4fe5518 (patch)
treea681044e9e8e0436e877c811bb05fe08cc4c6673 /ldpd
parentMerge pull request #3599 from donaldsharp/vtysh_sharp (diff)
downloadfrr-c00ba1da70faddb062e75b2cd7c4546ab4fe5518.tar.xz
frr-c00ba1da70faddb062e75b2cd7c4546ab4fe5518.zip
ldpd: fix missing return value in bindany
One of the socket utilities was missing a return value in one of its ifdef'd paths. Signed-off-by: Mark Stapp <mjs@voltanet.io>
Diffstat (limited to 'ldpd')
-rw-r--r--ldpd/socket.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ldpd/socket.c b/ldpd/socket.c
index 78a07b1ed..b31db2c7b 100644
--- a/ldpd/socket.c
+++ b/ldpd/socket.c
@@ -276,6 +276,7 @@ sock_set_bindany(int fd, int enable)
return (-1);
}
}
+ return (0);
#else
log_warnx(
"%s: missing SO_BINDANY, IP_FREEBIND and IP_BINDANY, unable to bind to a nonlocal IP address",