From f706b8d79a6ef594057f27c9066bd5beb72c36b4 Mon Sep 17 00:00:00 2001 From: Radu Nicolau Date: Tue, 29 May 2018 11:42:33 +0100 Subject: 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 --- src/vnet/ipsec/ikev2_crypto.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/vnet') 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 -- cgit 1.2.3-korg