1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-10 07:04:03 +00:00

Fix coredump on early termination

PR:             74022
Submitted by:   Thomas Quinot <thomas@cuivre.fr.eu.org>
This commit is contained in:
Andrey A. Chernov 2004-11-17 06:49:39 +00:00
parent b5392dfa2b
commit 37c0e04ec1
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=121797
2 changed files with 13 additions and 2 deletions

View File

@ -6,8 +6,8 @@
#
PORTNAME= procmail
PORTVERSION= 3.22
PORTREVISION= 4
PORTVERSION= 3.22
PORTREVISION= 5
CATEGORIES= mail
MASTER_SITES= ftp://ftp.procmail.org/pub/procmail/ \
ftp://ftp.psg.com/pub/unix/procmail/ \

View File

@ -0,0 +1,11 @@
--- src/comsat.c.orig Tue Sep 11 08:55:46 2001
+++ src/comsat.c Wed Nov 17 09:44:12 2004
@@ -120,7 +120,7 @@
{ int s;const char*p;
if(!csvalid||!buf) /* is comat on and set to a valid address? */
return;
- if(!*cslgname||strlen(cslgname)+2>linebuf) /* is $LOGNAME bogus? */
+ if(!cslgname||!*cslgname||strlen(cslgname)+2>linebuf) /* is $LOGNAME bogus? */
return;
if(!(p=folder?folder:cslastf)) /* do we have a folder? */
return;