From: Ralph Corderoy Date: Fri, 21 Oct 2016 23:45:09 +0000 (+0100) Subject: Move smtp_init's last-ditch attempt for client inside first test. X-Git-Url: https://diplodocus.org/git/nmh/commitdiff_plain/a0f0cad535ac370a2c323171b5ebb33736623595?ds=sidebyside Move smtp_init's last-ditch attempt for client inside first test. Didn't realise there was a second lot of similar code before the last commit. --- diff --git a/mts/smtp/smtp.c b/mts/smtp/smtp.c index 7b706e01..68228ee3 100644 --- a/mts/smtp/smtp.c +++ b/mts/smtp/smtp.c @@ -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();