aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMathiasRaoul <mathias.raoul@gmail.com>2020-02-07 09:42:38 +0000
committerDave Wallace <dwallacelf@gmail.com>2020-02-07 15:39:49 +0000
commit9fef68d778d7fa8519343d168169ecdb26fa7570 (patch)
tree8eda14cde997abe18d9e92829dbc220c0aa1b66f
parent1557d9a30dace17c5254d8abc5fad98776fef4c6 (diff)
quic: fix coverity warning
Type: fix Change-Id: I24aac10a2943151d5b2fe96a0dff1c5beb7340b9 Signed-off-by: MathiasRaoul <mathias.raoul@gmail.com>
-rw-r--r--src/plugins/quic/quic_crypto.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/plugins/quic/quic_crypto.c b/src/plugins/quic/quic_crypto.c
index 7d513037ccb..dd7300388d4 100644
--- a/src/plugins/quic/quic_crypto.c
+++ b/src/plugins/quic/quic_crypto.c
@@ -160,13 +160,12 @@ quic_crypto_setup_cipher (quicly_crypto_engine_t * engine,
uint8_t hpkey[PTLS_MAX_SECRET_SIZE];
int ret;
- if (hp_ctx != NULL)
- *hp_ctx = NULL;
*aead_ctx = NULL;
/* generate new header protection key */
if (hp_ctx != NULL)
{
+ *hp_ctx = NULL;
if ((ret =
ptls_hkdf_expand_label (hash, hpkey, aead->ctr_cipher->key_size,
ptls_iovec_init (secret,