aboutsummaryrefslogtreecommitdiffstats
path: root/mail/libspf/files
diff options
context:
space:
mode:
authorlawrance <lawrance@FreeBSD.org>2005-08-05 21:48:17 +0800
committerlawrance <lawrance@FreeBSD.org>2005-08-05 21:48:17 +0800
commitb13390ed7f870c5109e00146cb79babe404c1e11 (patch)
treeeba128302ce1e5dc12a4ef19fb858bb070b40cb0 /mail/libspf/files
parent67ff7cae0b532b79de2c2b49cf6e8f6796f05a6b (diff)
downloadfreebsd-ports-gnome-b13390ed7f870c5109e00146cb79babe404c1e11.tar.gz
freebsd-ports-gnome-b13390ed7f870c5109e00146cb79babe404c1e11.tar.zst
freebsd-ports-gnome-b13390ed7f870c5109e00146cb79babe404c1e11.zip
Fix double-free bug (also reported upstream).
Bump PORTREVISION. PR: ports/84552 Submitted by: Marcus Grando <marcus@corp.grupos.com.br> (maintainer) Obtained from: Ricky Chan <ricky@ricky-chan.co.uk> Approved by: portmgr (krion)
Diffstat (limited to 'mail/libspf/files')
-rw-r--r--mail/libspf/files/patch-src_libspf_main.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/mail/libspf/files/patch-src_libspf_main.c b/mail/libspf/files/patch-src_libspf_main.c
new file mode 100644
index 000000000000..4c5eaf80ac97
--- /dev/null
+++ b/mail/libspf/files/patch-src_libspf_main.c
@@ -0,0 +1,11 @@
+--- src/libspf/main.c.orig Thu Jul 28 17:23:42 2005
++++ src/libspf/main.c Thu Jul 28 17:24:11 2005
+@@ -1683,7 +1683,7 @@
+ xfree(p->from);
+ }
+
+- if (p->spf_rlevel > 0)
++ if (p->spf_rlevel > 0 && p->current_domain != p->original_domain)
+ {
+ xfree(p->current_domain);
+ }