From a0f0cad535ac370a2c323171b5ebb33736623595 Mon Sep 17 00:00:00 2001 From: Ralph Corderoy Date: Sat, 22 Oct 2016 00:45:09 +0100 Subject: [PATCH] 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. --- mts/smtp/smtp.c | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) 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(); -- 2.56.0