From e68547f06f0c2c341003b4e13cc28d0cee86e840 Mon Sep 17 00:00:00 2001 From: Ingo Franzki Date: Fri, 31 Oct 2025 14:01:15 +0100 Subject: [PATCH] libkmipclient: Fix return code passing MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Function kmip_connection_tls_verify_server() erroneously always returns zero, even if an error is detected inside the function. Fix this by returning the return code value at the end of the function. Found by clang static code analyzer. Fixes: 56fecf1832c3 ("libkmipclient: Add KMIP client shared library") Reviewed-by: Jan Höppner Signed-off-by: Ingo Franzki Signed-off-by: Jan Höppner --- libkmipclient/tls.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libkmipclient/tls.c b/libkmipclient/tls.c index 399a8808..45782f09 100644 --- a/libkmipclient/tls.c +++ b/libkmipclient/tls.c @@ -233,7 +233,7 @@ out: if (server_cert != NULL) X509_free(server_cert); - return 0; + return rc; } /**