Commit 796a627e authored by Matt Caswell's avatar Matt Caswell
Browse files

Ensure the WPACKET gets cleaned up in the event of an error



Otherwise a mem leak can occur.

Reviewed-by: default avatarRich Salz <rsalz@openssl.org>
parent 871bc59b
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -875,6 +875,7 @@ int tls_construct_client_hello(SSL *s)
    return 1;
 err:
    ossl_statem_set_error(s);
    WPACKET_cleanup(&pkt);
    return 0;
}