[Raw Msg Headers][Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: smtpserver dropping connection



On Thu, Sep 30, 1999 at 01:08:55PM +0400, Eugene Crosser wrote:
> I think this is a bug.  If you try to feed a message to smtpserver that
> is bigger than advertized SIZE it drops connection in an improper way.
...
> Eugene

  Now in the CVS.

Index: smtpserver/smtpcmds.c
===================================================================
RCS file: /home/mea/src/CVSROOT/zmailer/smtpserver/smtpcmds.c,v
retrieving revision 1.48
retrieving revision 1.49
diff -u -r1.48 -r1.49
--- smtpserver/smtpcmds.c       1999/08/30 11:32:26     1.48
+++ smtpserver/smtpcmds.c       1999/09/30 19:00:38     1.49
@@ -887,7 +887,10 @@
     }
     if (s)
        free((void *) s);
-    SS->state = Recipient;
+
+    if (SS->mfp) /* State change only, if we still have the mfp */
+      SS->state = Recipient;
+
     SS->rcpt_count = 0;
     SS->from_box = (*cp == 0);
 }



/Matti Aarnio