mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-09 09:54:25 +09:00
CVE-2023-2283:pki_crypto: Remove unnecessary NULL check
Signed-off-by: Norbert Pocs <npocs@redhat.com> Reviewed-by: Jakub Jelen <jjelen@redhat.com> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
This commit is contained in:
committed by
Andreas Schneider
parent
e8dfbb85a2
commit
c68a58575b
@@ -3273,9 +3273,7 @@ int pki_verify_data_signature(ssh_signature signature,
|
|||||||
rc = SSH_OK;
|
rc = SSH_OK;
|
||||||
|
|
||||||
out:
|
out:
|
||||||
if (ctx != NULL) {
|
EVP_MD_CTX_free(ctx);
|
||||||
EVP_MD_CTX_free(ctx);
|
|
||||||
}
|
|
||||||
EVP_PKEY_free(pkey);
|
EVP_PKEY_free(pkey);
|
||||||
return rc;
|
return rc;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user