PATCH: longish HELO in dccm.c

Leandro Santi lesanti@uolsinectis.com.ar
Fri Oct 18 17:42:10 UTC 2002


Hi,

The following patch fixes a problem with long smtp HELO arguments
in dccm.c. See the patch for more deailts, it is quite obvious in fact.

Please note that I actually found this problem while running my (yet
unreleased :) version of in-postfix-context dcc client, which is in
fact quite similar to dccm.c; so I didn't actually check and/or compiled
this patch.

Regards,
Leandro
-------------- next part --------------
diff -urN dcc-dccd-1.1.15/dccm/dccm.c dcc-dccd-1.1.15.patched/dccm/dccm.c
--- dcc-dccd-1.1.15/dccm/dccm.c	Fri Sep 20 02:08:34 2002
+++ dcc-dccd-1.1.15.patched/dccm/dccm.c	Fri Oct 18 14:31:31 2002
@@ -1128,8 +1128,8 @@
 	if (i < ISZ(wp->helo)) {
 		memcpy(wp->helo, helo, i+1);
 	} else {
-		memcpy(wp->helo, helo, ISZ(helo)-4);
-		strcpy(&wp->helo[ISZ(helo)-4], "...");
+		memcpy(wp->helo, helo, ISZ(wp->helo)-4);
+		strcpy(&wp->helo[ISZ(wp->helo)-4], "...");
 	}
 
 	wp->have_helo = 1;


More information about the DCC mailing list

Contact vjs@rhyolite.com by mail or use the form.