diff options
author | heinz <heinz@pkgsrc.org> | 2003-02-09 02:27:54 +0000 |
---|---|---|
committer | heinz <heinz@pkgsrc.org> | 2003-02-09 02:27:54 +0000 |
commit | fce90a9f2c7081bcf2ec93f058062502a68f2f1f (patch) | |
tree | 3be378bfa44dd3c23df069d460a6ec746cd4d0f0 /mail/spamassassin | |
parent | 5aa046ef456018b98e0de648bed41c71cf8b886c (diff) | |
download | pkgsrc-fce90a9f2c7081bcf2ec93f058062502a68f2f1f.tar.gz |
Remove incorrect 'free()' from libspamc.c (used in 'spamc'). Patch copied
from stable branch of SA CVS repository.
On other operating systems 'spamc' was reported to cause a core dump if
'spamd' was not running. At least NetBSD/i386 1.5.3 seems not to be as
severely affected, I only got 'spamc in free(): warning: junk
pointer, too high to make sense.'.
Diffstat (limited to 'mail/spamassassin')
-rw-r--r-- | mail/spamassassin/Makefile | 4 | ||||
-rw-r--r-- | mail/spamassassin/patches/patch-ai | 12 |
2 files changed, 14 insertions, 2 deletions
diff --git a/mail/spamassassin/Makefile b/mail/spamassassin/Makefile index 45b856cc503..fd3d29d1e78 100644 --- a/mail/spamassassin/Makefile +++ b/mail/spamassassin/Makefile @@ -1,8 +1,8 @@ -# $NetBSD: Makefile,v 1.17 2003/02/02 19:38:39 heinz Exp $ +# $NetBSD: Makefile,v 1.18 2003/02/09 02:27:54 heinz Exp $ DISTNAME= Mail-SpamAssassin-2.44 PKGNAME= spamassassin-2.44 -PKGREVISION= # empty +PKGREVISION= 1 SVR4_PKGNAME= sa CATEGORIES= mail MASTER_SITES= ${MASTER_SITE_PERL_CPAN:=Mail/} \ diff --git a/mail/spamassassin/patches/patch-ai b/mail/spamassassin/patches/patch-ai new file mode 100644 index 00000000000..6a07ce26ba5 --- /dev/null +++ b/mail/spamassassin/patches/patch-ai @@ -0,0 +1,12 @@ +$NetBSD: patch-ai,v 1.1 2003/02/09 02:27:54 heinz Exp $ + +--- spamd/libspamc.c.orig Fri Jan 31 15:49:03 2003 ++++ spamd/libspamc.c +@@ -371,7 +371,6 @@ + if(i<0 || len >= bufsiz){ free(m->out); m->out=m->msg; m->out_len=m->msg_len; return EX_OSERR; } + + if((i=try_to_connect(addr, &sock))!=EX_OK){ +- free(buf); + free(m->out); m->out=m->msg; m->out_len=m->msg_len; + return i; + } |