mirror of
https://github.com/openssl/openssl.git
synced 2025-03-31 20:10:45 +08:00
tparam_on_enc_ext(): Remove dead code in cleanup
Fixes Coverity 1548382 Reviewed-by: Hugo Landau <hlandau@openssl.org> Reviewed-by: Matt Caswell <matt@openssl.org> Reviewed-by: Paul Dale <pauli@openssl.org> (Merged from https://github.com/openssl/openssl/pull/22606)
This commit is contained in:
parent
0e2e4b3e69
commit
3150dbe7cb
@ -1994,12 +1994,8 @@ static int tparam_on_enc_ext(QTEST_FAULT *qtf, QTEST_ENCRYPTED_EXTENSIONS *ee,
|
||||
|
||||
rc = 1;
|
||||
err:
|
||||
if (have_wpkt) {
|
||||
if (rc)
|
||||
WPACKET_finish(&wpkt);
|
||||
else
|
||||
WPACKET_cleanup(&wpkt);
|
||||
}
|
||||
if (have_wpkt)
|
||||
WPACKET_cleanup(&wpkt);
|
||||
BUF_MEM_free(old_bufm);
|
||||
BUF_MEM_free(new_bufm);
|
||||
return rc;
|
||||
|
Loading…
x
Reference in New Issue
Block a user