summaryrefslogtreecommitdiffstats
path: root/main/ipsec-tools/02-fix-xauth-double-free-on-reload.patch
diff options
context:
space:
mode:
authorKaarle Ritvanen <kaarle.ritvanen@datakunkku.fi>2013-02-19 08:39:16 +0000
committerKaarle Ritvanen <kaarle.ritvanen@datakunkku.fi>2013-02-19 08:39:16 +0000
commitb535bc8b6bb57100b82a96cfc8036b44352e30fc (patch)
tree31be403d6baa1479e97293ffc6b072e40c0c09e6 /main/ipsec-tools/02-fix-xauth-double-free-on-reload.patch
parent13e403edbd162d0ba72c8247277274c49e063766 (diff)
parentcd5234ffb565c96748944cc9a0438a2dcb23b134 (diff)
downloadaports-b535bc8b6bb57100b82a96cfc8036b44352e30fc.tar.bz2
aports-b535bc8b6bb57100b82a96cfc8036b44352e30fc.tar.xz
Merge branch 'master' of ssh://git.alpinelinux.org/gitroot/aports
Diffstat (limited to 'main/ipsec-tools/02-fix-xauth-double-free-on-reload.patch')
-rw-r--r--main/ipsec-tools/02-fix-xauth-double-free-on-reload.patch19
1 files changed, 19 insertions, 0 deletions
diff --git a/main/ipsec-tools/02-fix-xauth-double-free-on-reload.patch b/main/ipsec-tools/02-fix-xauth-double-free-on-reload.patch
new file mode 100644
index 000000000..af3f7468b
--- /dev/null
+++ b/main/ipsec-tools/02-fix-xauth-double-free-on-reload.patch
@@ -0,0 +1,19 @@
+--- a/src/racoon/isakmp_xauth.c 15 Nov 2011 13:51:23 -0000 1.24
++++ b/src/racoon/isakmp_xauth.c 5 Feb 2013 06:21:03 -0000
+@@ -458,10 +458,14 @@
+ vfree(xauth_rad_config.acct_server_list[i].host);
+ vfree(xauth_rad_config.acct_server_list[i].secret);
+ }
+- if (radius_auth_state != NULL)
++ if (radius_auth_state != NULL) {
+ rad_close(radius_auth_state);
+- if (radius_acct_state != NULL)
++ radius_auth_state = NULL;
++ }
++ if (radius_acct_state != NULL) {
+ rad_close(radius_acct_state);
++ radius_acct_state = NULL;
++ }
+ }
+
+ /* initialize radius config */