]> git.puffer.fish Git - matthieu/frr.git/commitdiff
lib: On some platforms function did not return anything
authorDonald Sharp <sharpd@cumulusnetworks.com>
Fri, 7 Jun 2019 13:27:38 +0000 (09:27 -0400)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Fri, 7 Jun 2019 13:29:45 +0000 (09:29 -0400)
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>
lib/sockopt.c

index 89f3d5b594ed37ee3a018c206611a2453698c65c..8e38a292784894869a64d3ab8d5589c2f92857c3 100644 (file)
@@ -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)