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)
This commit is contained in:
Sam Lawrance 2005-08-05 13:48:17 +00:00
parent 68bc305b6a
commit 39eac4f513
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=140790
2 changed files with 12 additions and 0 deletions

View File

@ -7,6 +7,7 @@
PORTNAME= libspf
DISTVERSION= 1.0.0-p3
PORTREVISION= 1
CATEGORIES= mail
MASTER_SITES= http://www.libspf.org/files/src/

View File

@ -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);
}