diff options
author | Ismael Luceno | 2022-04-19 12:49:40 +0200 |
---|---|---|
committer | Ismael Luceno | 2022-04-19 13:20:41 +0200 |
commit | a4a90f84d2463cf6d674be9c70d1abe513682c53 (patch) | |
tree | 65502d8176dded07b9ac741ca521d3396b0084e9 /net | |
parent | 321018fbbb9b2c034ef009ac4329f1bbf4b60ae9 (diff) |
vpnc: Patch update, SECURITY_PATCH++
Diffstat (limited to 'net')
-rwxr-xr-x | net/vpnc/DETAILS | 2 | ||||
-rw-r--r-- | net/vpnc/HISTORY | 4 | ||||
-rw-r--r-- | net/vpnc/patches/0002-Fix-cleanup-of-shared-secret.patch | 22 |
3 files changed, 19 insertions, 9 deletions
diff --git a/net/vpnc/DETAILS b/net/vpnc/DETAILS index dae56d970c..841e038e5a 100755 --- a/net/vpnc/DETAILS +++ b/net/vpnc/DETAILS @@ -1,6 +1,6 @@ SPELL=vpnc VERSION=0.5.3 - SECURITY_PATCH=2 + SECURITY_PATCH=3 SOURCE=$SPELL-$VERSION.tar.gz SOURCE_DIRECTORY=$BUILD_DIRECTORY/$SPELL-$VERSION SOURCE_URL[0]=http://www.unix-ag.uni-kl.de/%7Emassar/vpnc/$SOURCE diff --git a/net/vpnc/HISTORY b/net/vpnc/HISTORY index 9244ba29c3..59d1029cb1 100644 --- a/net/vpnc/HISTORY +++ b/net/vpnc/HISTORY @@ -1,3 +1,7 @@ +2022-04-19 Ismael Luceno <ismael@sourcemage.org> + * DETAILS, patches/0002-Fix-cleanup-of-shared-secret.patch: updated patch + SECURITY_PATCH++ + 2022-04-18 Ismael Luceno <ismael@sourcemage.org> * PRE_BUILD: removed edit of Makefile, not needed added apply_patch_dir diff --git a/net/vpnc/patches/0002-Fix-cleanup-of-shared-secret.patch b/net/vpnc/patches/0002-Fix-cleanup-of-shared-secret.patch index 4a8f6fa378..e656e8d765 100644 --- a/net/vpnc/patches/0002-Fix-cleanup-of-shared-secret.patch +++ b/net/vpnc/patches/0002-Fix-cleanup-of-shared-secret.patch @@ -1,15 +1,15 @@ -From aa688f2b9ccd3e229f2a059a3d57408cdc0cf92b Mon Sep 17 00:00:00 2001 +From 0c9a06b9555bf48b07f5d69ec78ac835510676cf Mon Sep 17 00:00:00 2001 From: Ismael Luceno <ismael@iodev.co.uk> Date: Mon, 18 Apr 2022 19:04:44 +0200 Subject: [PATCH 2/4] Fix cleanup of shared secret Signed-off-by: Ismael Luceno <ismael@iodev.co.uk> --- - vpnc.c | 4 +++- - 1 file changed, 3 insertions(+), 1 deletion(-) + vpnc.c | 9 ++++++--- + 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/vpnc.c b/vpnc.c -index 39eb40e86fa5..e5924161ef83 100644 +index 39eb40e86fa5..8bb52f95a96f 100644 --- a/vpnc.c +++ b/vpnc.c @@ -1899,7 +1899,7 @@ static void do_phase1_am(const char *key_id, const char *shared_key, struct sa_b @@ -29,14 +29,20 @@ index 39eb40e86fa5..e5924161ef83 100644 free(dh_shared_secret); free(psk_hash); group_free(dh_grp); -@@ -2858,6 +2859,7 @@ static void do_phase2_qm(struct sa_block *s) +@@ -2856,9 +2857,11 @@ static void do_phase2_qm(struct sa_block *s) + dh_shared_secret, dh_grp ? dh_getlen(dh_grp) : 0, + nonce_i, sizeof(nonce_i), nonce_r->u.nonce.data, nonce_r->u.nonce.length); - if (dh_grp) +- if (dh_grp) ++ if (dh_grp) { ++ memset(dh_shared_secret, 0, dh_getlen(dh_grp)); ++ free(dh_shared_secret); group_free(dh_grp); -+ memset(dh_shared_secret, 0, dh_getlen(dh_grp)); - free(dh_shared_secret); +- free(dh_shared_secret); ++ } free_isakmp_packet(r); + if ((opt_natt_mode == NATT_CISCO_UDP) && s->ipsec.peer_udpencap_port) { -- 2.35.3 |