quic: fix coverity warning 44/28744/2
authorAloys Augustin <aloaugus@cisco.com>
Thu, 10 Sep 2020 15:28:18 +0000 (15:28 +0000)
committerDamjan Marion <dmarion@me.com>
Fri, 11 Sep 2020 06:41:17 +0000 (06:41 +0000)
Type: fix
Signed-off-by: Aloys Augustin <aloaugus@cisco.com>
Change-Id: Ic51ba3450b3d0722ebff4280127f526b5a9934b1

src/plugins/quic/quic_crypto.c

index d8fd4a9..daf39e8 100644 (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;