libkmipclient: Fix return code passing

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: 56fecf1832 ("libkmipclient: Add KMIP client shared library")
Reviewed-by: Jan Höppner <hoeppner@linux.ibm.com>
Signed-off-by: Ingo Franzki <ifranzki@linux.ibm.com>
Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>
This commit is contained in:
Ingo Franzki
2025-10-31 14:01:15 +01:00
committed by Jan Höppner
parent 95d784d866
commit e68547f06f

View File

@@ -233,7 +233,7 @@ out:
if (server_cert != NULL)
X509_free(server_cert);
return 0;
return rc;
}
/**