From: Juliusz Sosinowicz Date: Thu, 4 Apr 2024 18:16:23 +0000 (+0200) Subject: wolfssl: Add missing return in tls_init() in an error case X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5c07e9be0e1c5468a56cdf37fe2ecbaa5fd7b197;p=thirdparty%2Fhostap.git wolfssl: Add missing return in tls_init() in an error case This is a fatal error and processing cannot continue further. Signed-off-by: Juliusz Sosinowicz --- diff --git a/src/crypto/tls_wolfssl.c b/src/crypto/tls_wolfssl.c index 8b05e7b06..13b036ec3 100644 --- a/src/crypto/tls_wolfssl.c +++ b/src/crypto/tls_wolfssl.c @@ -403,6 +403,7 @@ void * tls_init(const struct tls_config *conf) os_free(tls_global); tls_global = NULL; } + return NULL; } wolfSSL_SetIORecv(ssl_ctx, wolfssl_receive_cb); wolfSSL_SetIOSend(ssl_ctx, wolfssl_send_cb);