ssltest.c: cb_ticket2 appears to not return a value when it "should"
authorRichard Levitte <levitte@openssl.org>
Fri, 10 Nov 2017 12:26:10 +0000 (13:26 +0100)
committerRichard Levitte <levitte@openssl.org>
Sat, 11 Nov 2017 10:07:05 +0000 (11:07 +0100)
cb_ticket2() does an exit, and should therefore not need to return anything.
Some compilers don't detect that, or don't care, and warn about a non-void
function without a return statement.

Reviewed-by: Tim Hudson <tjh@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/4713)

ssl/ssltest.c

index 2d6141cd954e000387503208fe1758f84354c0f2..6171ebc8d68b3a763df71b612e45b98a1eadd7a0 100644 (file)
@@ -554,6 +554,7 @@ static int cb_ticket2(SSL* s, unsigned char* key_name, unsigned char *iv, EVP_CI
 {
     fprintf(stderr, "ticket callback for SNI context should never be called\n");
     EXIT(1);
+    return 0;
 }
 #endif