Skip to content

Commit

Permalink
tparam_on_enc_ext(): Remove dead code in cleanup
Browse files Browse the repository at this point in the history
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 #22606)

(cherry picked from commit 3150dbe)
  • Loading branch information
t8m authored and hlandau committed Nov 6, 2023
1 parent e2c6a1d commit 1ee0a9d
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions test/quicapitest.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 1ee0a9d

Please sign in to comment.