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

smtpcmds.c



It seems like that at 7 nov. 2003 commit caused bug in smtpcmds.c.
In smtp_rcpt and smtp_mail functions does not correctly skips spaces
This results in 'strangeness between' error.

Patch:
====
--- smtpcmds.c.orig	Fri Jan 23 15:42:37 2004
+++ smtpcmds.c	Fri Jan 23 16:13:05 2004
@@ -440,7 +440,7 @@
     }
     cp += 5;
 
-    if ((strict_protocol != 0) || sloppy)
+    if ((strict_protocol == 0) || sloppy)
       for (; *cp != '\0' && *cp != '<'; ++cp)
 	/* Skip white-space */
 	if (!isascii(*cp) || !isspace(*cp)) {
@@ -1111,7 +1111,7 @@
 	return -1;
     }
     cp += 3;
-    if ((strict_protocol != 0) || sloppy)
+    if ((strict_protocol == 0) || sloppy)
       for (; *cp != '\0' && *cp != '<'; ++cp)
 	if (!isspace(*cp)) {
 	  if (!sloppy && (strict_protocol >= 0)) {
====
-
To unsubscribe from this list: send the line "unsubscribe zmailer" in
the body of a message to majordomo@nic.funet.fi