Fix coverity 1516094 uninit
Reviewed-by: Tomas Mraz <tomas@openssl.org> Reviewed-by: Paul Dale <pauli@openssl.org> (Merged from https://github.com/openssl/openssl/pull/19440)
This commit is contained in:
parent
5e569f0a2e
commit
d06d5d6b68
@ -3732,7 +3732,10 @@ CON_FUNC_RETURN tls_construct_client_compressed_certificate(SSL_CONNECTION *sc,
|
||||
err:
|
||||
SSLfatal(sc, SSL_AD_INTERNAL_ERROR, ERR_R_INTERNAL_ERROR);
|
||||
out:
|
||||
WPACKET_cleanup(&tmppkt);
|
||||
if (buf != NULL) {
|
||||
/* If |buf| is NULL, then |tmppkt| could not have been initialized */
|
||||
WPACKET_cleanup(&tmppkt);
|
||||
}
|
||||
BUF_MEM_free(buf);
|
||||
COMP_CTX_free(comp);
|
||||
return ret;
|
||||
|
Loading…
x
Reference in New Issue
Block a user