[25282] in Athena Bugs
patch to fix smtptest
daemon@ATHENA.MIT.EDU (Derek Atkins)
Mon Nov 3 22:18:58 2003
To: bugs@MIT.EDU
From: Derek Atkins <warlord@MIT.EDU>
Date: Mon, 03 Nov 2003 22:18:57 -0500
Message-ID: <sjmllqwyg66.fsf@kikki.mit.edu>
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="=-=-="
--=-=-=
This patch to fix the problem I reported earlier with smtptest.
-derek
--=-=-=
Content-Type: text/x-patch
Content-Disposition: attachment; filename=cyrus.diff
Content-Description: Patch to cyrus
Index: cyrus-imapd/lib/prot.c
===================================================================
RCS file: /afs/dev.mit.edu/source/repository/third/cyrus-imapd/lib/prot.c,v
retrieving revision 1.1.1.2
diff -u -r1.1.1.2 prot.c
--- cyrus-imapd/lib/prot.c 14 Feb 2003 21:39:13 -0000 1.1.1.2
+++ cyrus-imapd/lib/prot.c 4 Nov 2003 03:16:11 -0000
@@ -178,7 +178,7 @@
return -1;
}
- if (max == 0 || max > PROT_BUFSIZE) {
+ if (max <= 0 || max > PROT_BUFSIZE) {
/* max = 0 means unlimited, and we can't go bigger */
max = PROT_BUFSIZE;
}
--=-=-=
--
Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory
Member, MIT Student Information Processing Board (SIPB)
URL: http://web.mit.edu/warlord/ PP-ASEL-IA N1NWH
warlord@MIT.EDU PGP key available
--=-=-=--