diff options
author | ache <ache@FreeBSD.org> | 1997-02-13 15:48:35 +0000 |
---|---|---|
committer | ache <ache@FreeBSD.org> | 1997-02-13 15:48:35 +0000 |
commit | 4a8888776c2d31e4443731ddd9064ec1dd82a859 (patch) | |
tree | 7bc97552fc0a6cc5fb75222d53abca263ecd0e48 /usr.sbin/sendmail | |
parent | 74d4a34b7316597dda26432fd274533bf903b2cb (diff) | |
download | FreeBSD-src-4a8888776c2d31e4443731ddd9064ec1dd82a859.zip FreeBSD-src-4a8888776c2d31e4443731ddd9064ec1dd82a859.tar.gz |
Under some circumstanes sendmail can loop forever collecting input.
Fix uninitialized character to prevent it.
Should go into 2.2
Diffstat (limited to 'usr.sbin/sendmail')
-rw-r--r-- | usr.sbin/sendmail/src/collect.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/usr.sbin/sendmail/src/collect.c b/usr.sbin/sendmail/src/collect.c index 660521c..dec7a84 100644 --- a/usr.sbin/sendmail/src/collect.c +++ b/usr.sbin/sendmail/src/collect.c @@ -192,6 +192,7 @@ collect(fp, smtpmode, requeueflag, hdrp, e) c = *--pbp; else { + c = EOF; while (!feof(fp) && !ferror(fp)) { errno = 0; |