summaryrefslogtreecommitdiff
path: root/mail/exim3/patches/patch-af
blob: 734a8d611409e10f7d56cc1977c9f6618711d935 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
$NetBSD: patch-af,v 1.2 2004/05/07 17:47:32 abs Exp $

--- src/smtp_in.c.orig	Thu Apr  4 13:56:20 2002
+++ src/smtp_in.c
@@ -2021,13 +2021,12 @@ while (done <= 0)
 
     if (!check_helo(smtp_data))
       {
-      char *s;
-      smtp_printf("501 syntactically invalid %s argument(s)\r\n", hello);
-      if (*smtp_data == 0) strcpy(smtp_data, "(no argument given)");
-      s = string_printing(smtp_data);
+      smtp_printf("501 Syntactically invalid %s argument(s)\r\n", hello);
       log_write(0, LOG_MAIN|LOG_REJECT, "rejected %s from %s: syntactically "
         "invalid argument(s): %s", hello,
-        (sender_fullhost == NULL)? "local process" : sender_fullhost, s);
+        (sender_fullhost == NULL)? "local process" : sender_fullhost,
+        (*smtp_data == 0)? "(no argument given)" :
+                           string_printing(smtp_data));
       break;
       }