From c2037647cf2aed7d5793cedab7f171de13ef5fa0 Mon Sep 17 00:00:00 2001 From: "chleun.moon" Date: Fri, 26 May 2017 13:04:27 +0900 Subject: Fix crash and invalid IKEV ESP proposals Change-Id: I129210bcc41398ad1686758d80d836db254b1368 Signed-off-by: cheoleun --- vpn/plugins/ipsec.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/vpn/plugins/ipsec.c b/vpn/plugins/ipsec.c index 2465ad40..b1a7ecd2 100644 --- a/vpn/plugins/ipsec.c +++ b/vpn/plugins/ipsec.c @@ -158,7 +158,7 @@ static const char *ikev1_proposals [] ={ NULL, }; -static const char *ikev2_esp_proposals = "aes256-aes128-sha512-sha384-sha256-sha1-modp2048-modp1536-modp1024"; +static const char *ikev2_esp_proposals = "aes256-aes128-sha256-sha1"; static const char *ikev2_proposals = "aes256-aes128-sha512-sha384-sha256-sha1-modp2048-modp1536-modp1024"; @@ -977,9 +977,6 @@ done: if(err != 0 && cb) cb(provider, data->user_data, -err); - if (data) - g_free(data); - return; } -- cgit v1.2.3