aboutsummaryrefslogtreecommitdiffstats
path: root/main/ipsec-tools/02-fix-xauth-double-free-on-reload.patch
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2013-02-05 13:41:25 +0200
committerTimo Teräs <timo.teras@iki.fi>2013-02-05 13:41:55 +0200
commitba39f71b2a8dfd155684df4b01f098039b68389e (patch)
tree3f88043924f0726a1ff7861e2458a26011fdb101 /main/ipsec-tools/02-fix-xauth-double-free-on-reload.patch
parent4382b60ad0a9738a21beb561c1e39cdd43b9c9f3 (diff)
downloadaports-ba39f71b2a8dfd155684df4b01f098039b68389e.tar.bz2
aports-ba39f71b2a8dfd155684df4b01f098039b68389e.tar.xz
main/ipsec-tools: cherry-pick fixes from upstream
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 0000000000..af3f7468be
--- /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 */