summaryrefslogtreecommitdiff
path: root/vpn
diff options
context:
space:
mode:
authorchleun.moon <chleun.moon@samsung.com>2017-05-26 04:04:27 (GMT)
committerchleun.moon <chleun.moon@samsung.com>2017-05-26 06:35:51 (GMT)
commitc2037647cf2aed7d5793cedab7f171de13ef5fa0 (patch)
treed7d34ef116ccc52aef391ec4fe4754560f2b2d90 /vpn
parentc2e9d71d066bf713c4ac04cf06ad50b28a2d5c00 (diff)
downloadconnman-c2037647cf2aed7d5793cedab7f171de13ef5fa0.zip
connman-c2037647cf2aed7d5793cedab7f171de13ef5fa0.tar.gz
connman-c2037647cf2aed7d5793cedab7f171de13ef5fa0.tar.bz2
Fix crash and invalid IKEV ESP proposalsrefs/changes/37/131237/2
Change-Id: I129210bcc41398ad1686758d80d836db254b1368 Signed-off-by: cheoleun <chleun.moon@samsung.com>
Diffstat (limited to 'vpn')
-rw-r--r--vpn/plugins/ipsec.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/vpn/plugins/ipsec.c b/vpn/plugins/ipsec.c
index 2465ad4..b1a7ecd 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;
}