]> diplodocus.org Git - nmh/commitdiff
Move smtp_init's last-ditch attempt for client inside first test.
authorRalph Corderoy <ralph@inputplus.co.uk>
Fri, 21 Oct 2016 23:45:09 +0000 (00:45 +0100)
committerRalph Corderoy <ralph@inputplus.co.uk>
Fri, 21 Oct 2016 23:45:09 +0000 (00:45 +0100)
Didn't realise there was a second lot of similar code before the last
commit.

mts/smtp/smtp.c

index 7b706e0..68228ee 100644 (file)
@@ -295,14 +295,13 @@ sendmail_init (char *client, int watch, int verbose, int debug, int sasl,
            client = clientname;
        else
            client = LocalName(1);      /* no clientname -> LocalName */
-    }
 
-    /*
-     * Last-ditch check just in case client still isn't set to anything
-     */
-
-    if (client == NULL || *client == '\0')
-       client = "localhost";
+        /*
+         * Last-ditch check just in case client still isn't set to anything
+         */
+        if (client == NULL || *client == '\0')
+            client = "localhost";
+    }
 
     nsc = netsec_init();