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:
229c1aa
)
ipsec: fix IKEv2 crash when rsa cert is used for authentication
84/12784/2
author
Radu Nicolau
<radu.nicolau@intel.com>
Tue, 29 May 2018 10:42:33 +0000
(11:42 +0100)
committer
Radu Nicolau
<radu.nicolau@intel.com>
Tue, 29 May 2018 10:48:35 +0000
(11:48 +0100)
Cause: EVP_MD_CTX object used but not initialized.
Change-Id: I390b2acf580f16415685563fa52e56717efc7be7
Signed-off-by: Radu Nicolau <radu.nicolau@intel.com>
src/vnet/ipsec/ikev2_crypto.c
patch
|
blob
|
history
diff --git
a/src/vnet/ipsec/ikev2_crypto.c
b/src/vnet/ipsec/ikev2_crypto.c
index
32e687e
..
5a35dfc
100644
(file)
--- a/
src/vnet/ipsec/ikev2_crypto.c
+++ b/
src/vnet/ipsec/ikev2_crypto.c
@@
-673,6
+673,7
@@
ikev2_verify_sign (EVP_PKEY * pkey, u8 * sigbuf, u8 * data)
EVP_MD_CTX *md_ctx = EVP_MD_CTX_new ();
#else
EVP_MD_CTX md_ctx;
+ EVP_MD_CTX_init (&md_ctx);
#endif
#if OPENSSL_VERSION_NUMBER >= 0x10100000L