Code Review
/
vpp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
1557d9a
)
quic: fix coverity warning
43/24843/3
author
MathiasRaoul
<mathias.raoul@gmail.com>
Fri, 7 Feb 2020 09:42:38 +0000
(09:42 +0000)
committer
Dave Wallace
<dwallacelf@gmail.com>
Fri, 7 Feb 2020 15:39:49 +0000
(15:39 +0000)
Type: fix
Change-Id: I24aac10a2943151d5b2fe96a0dff1c5beb7340b9
Signed-off-by: MathiasRaoul <mathias.raoul@gmail.com>
src/plugins/quic/quic_crypto.c
patch
|
blob
|
history
diff --git
a/src/plugins/quic/quic_crypto.c
b/src/plugins/quic/quic_crypto.c
index
7d51303
..
dd73003
100644
(file)
--- 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,