libkmipclient: Fix findings from static code checker

The Coverity static code checker found a few bugs in the libkmipclient
code, fix those.

Signed-off-by: Ingo Franzki <ifranzki@linux.ibm.com>
Reviewed-by: Joerg Schmidbauer <jschmidb@de.ibm.com>
Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>
This commit is contained in:
Ingo Franzki
2025-05-15 16:58:33 +02:00
committed by Jan Höppner
parent ce997c6d01
commit 486882a4df
5 changed files with 5 additions and 4 deletions
+1 -1
View File
@@ -1369,7 +1369,7 @@ int kmip_get_get_response_payload(const struct kmip_node *node,
return 0;
error:
if (*unique_id != NULL) {
if (unique_id != NULL && *unique_id != NULL) {
kmip_node_free(*unique_id);
*unique_id = NULL;
}