Skip to content
This repository was archived by the owner on Jan 26, 2026. It is now read-only.

Commit c68a585

Browse files
Norbert Pocscryptomilk
authored andcommitted
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>
1 parent e8dfbb8 commit c68a585

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

src/pki_crypto.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3273,9 +3273,7 @@ int pki_verify_data_signature(ssh_signature signature,
32733273
rc = SSH_OK;
32743274

32753275
out:
3276-
if (ctx != NULL) {
3277-
EVP_MD_CTX_free(ctx);
3278-
}
3276+
EVP_MD_CTX_free(ctx);
32793277
EVP_PKEY_free(pkey);
32803278
return rc;
32813279
}

0 commit comments

Comments
 (0)