quic: fix coverity warning

Change-Id: Ic31cde8564a0705710d91e0a7b90dcc6cf2f8db6
Type: fix
Signed-off-by: Aloys Augustin <aloaugus@cisco.com>
This commit is contained in:
Aloys Augustin
2020-09-10 15:28:18 +00:00
committed by Andrew Yourtchenko
parent 758e6776a8
commit 6f1a86f187

View File

@ -208,7 +208,7 @@ quic_crypto_setup_cipher (quicly_crypto_engine_t * engine,
Exit:
if (ret != 0)
{
if (aead_ctx && *aead_ctx != NULL)
if (*aead_ctx != NULL)
{
ptls_aead_free (*aead_ctx);
*aead_ctx = NULL;