summaryrefslogtreecommitdiff
path: root/lib/sockopt.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2019-06-07 09:27:38 -0400
committerDonald Sharp <sharpd@cumulusnetworks.com>2019-06-07 09:29:45 -0400
commitadc109b5a26897568f616aa565b9b18019722993 (patch)
treef230314f3ac92162d2ac1cc2fc69760ae34de327 /lib/sockopt.c
parent3711fdb77c08f02156f4ee29d9bbd9790175faf4 (diff)
lib: On some platforms function did not return anything
On some compiler platforms the md5 setup function was not returning anything. Place failure case on the bottom to properly handle this situation. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'lib/sockopt.c')
-rw-r--r--lib/sockopt.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/sockopt.c b/lib/sockopt.c
index 89f3d5b594..8e38a29278 100644
--- a/lib/sockopt.c
+++ b/lib/sockopt.c
@@ -701,6 +701,12 @@ int sockopt_tcp_signature_ext(int sock, union sockunion *su, uint16_t prefixlen,
}
return ret;
#endif /* HAVE_TCP_MD5SIG */
+
+ /*
+ * Making compiler happy. If we get to this point we probably
+ * have done something really really wrong.
+ */
+ return -2;
}
int sockopt_tcp_signature(int sock, union sockunion *su, const char *password)