quic: fix coverity warning
Type: fix Change-Id: I7299b3b0a6d32c1cbe213dc1aadb8260cdec8062 Signed-off-by: MathiasRaoul <mathias.raoul@gmail.com>
This commit is contained in:

committed by
Dave Barach

parent
7de2961966
commit
707b5369f8
@@ -209,12 +209,12 @@ quic_crypto_setup_cipher (quicly_crypto_engine_t * engine,
|
||||
Exit:
|
||||
if (ret != 0)
|
||||
{
|
||||
if (*aead_ctx != NULL)
|
||||
if (aead_ctx && *aead_ctx != NULL)
|
||||
{
|
||||
ptls_aead_free (*aead_ctx);
|
||||
*aead_ctx = NULL;
|
||||
}
|
||||
if (*hp_ctx != NULL)
|
||||
if (hp_ctx && *hp_ctx != NULL)
|
||||
{
|
||||
ptls_cipher_free (*hp_ctx);
|
||||
*hp_ctx = NULL;
|
||||
|
Reference in New Issue
Block a user