diff options
author | Radu Nicolau <radu.nicolau@intel.com> | 2018-05-29 11:42:33 +0100 |
---|---|---|
committer | Radu Nicolau <radu.nicolau@intel.com> | 2018-05-29 11:48:35 +0100 |
commit | f706b8d79a6ef594057f27c9066bd5beb72c36b4 (patch) | |
tree | 56734cf99bee0a74a1fbca4326328576d42706c1 /src | |
parent | 229c1aaf7501afa95c3768702bb1e76beb59384c (diff) |
ipsec: fix IKEv2 crash when rsa cert is used for authentication
Cause: EVP_MD_CTX object used but not initialized.
Change-Id: I390b2acf580f16415685563fa52e56717efc7be7
Signed-off-by: Radu Nicolau <radu.nicolau@intel.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/vnet/ipsec/ikev2_crypto.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/vnet/ipsec/ikev2_crypto.c b/src/vnet/ipsec/ikev2_crypto.c index 32e687e37c0..5a35dfc5503 100644 --- 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 |