Skip to content

Commit

Permalink
eddsa_signverify_init(): Avoid memory leak on error
Browse files Browse the repository at this point in the history
Add missing WPACKET_cleanup() call.
Fixes Coverity 1638693

Reviewed-by: Neil Horman <[email protected]>
Reviewed-by: Shane Lontis <[email protected]>
(Merged from openssl#26500)
  • Loading branch information
t8m committed Jan 23, 2025
1 parent 2455ef2 commit abbc407
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions providers/implementations/signature/eddsa_sig.c
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,7 @@ static int eddsa_signverify_init(void *vpeddsactx, void *vedkey)
ERR_raise(ERR_LIB_PROV, ERR_R_INTERNAL_ERROR);
ossl_ecx_key_free(edkey);
peddsactx->key = NULL;
WPACKET_cleanup(&pkt);
return 0;
}
if (ret && WPACKET_finish(&pkt)) {
Expand Down

0 comments on commit abbc407

Please sign in to comment.