Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
| inline |
side by side
quic: fix coverity warning
[vpp.git]
/
src
/
plugins
/
quic
/
quic_crypto.c
diff --git
a/src/plugins/quic/quic_crypto.c
b/src/plugins/quic/quic_crypto.c
index
b644bed
..
7d51303
100644
(file)
--- a/
src/plugins/quic/quic_crypto.c
+++ b/
src/plugins/quic/quic_crypto.c
@@
-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;