From 179af540a48f3cd1b9bb981589f7ee220d4f8cd4 Mon Sep 17 00:00:00 2001 From: Richard Levitte Date: Fri, 10 Nov 2017 13:26:10 +0100 Subject: [PATCH] ssltest.c: cb_ticket2 appears to not return a value when it "should" 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 (Merged from https://github.com/openssl/openssl/pull/4713) --- ssl/ssltest.c | 1 + 1 file changed, 1 insertion(+) diff --git a/ssl/ssltest.c b/ssl/ssltest.c index 2d6141cd95..6171ebc8d6 100644 --- a/ssl/ssltest.c +++ b/ssl/ssltest.c @@ -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 -- 2.25.1