X-Git-Url: https://git.exim.org/exim.git/blobdiff_plain/cb570b5ea1ff234ae16b2c32a236ccd520a80f7a..dc8091e7b9eb80b77699ac59de3f39eedef65c04:/src/src/smtp_in.c diff --git a/src/src/smtp_in.c b/src/src/smtp_in.c index 202fcf1bb..98968f95d 100644 --- a/src/src/smtp_in.c +++ b/src/src/smtp_in.c @@ -2353,10 +2353,9 @@ code = US"220"; /* Default status code */ esc = US""; /* Default extended status code */ esclen = 0; /* Length of esc */ -if (user_msg == NULL) +if (!user_msg) { - s = expand_string(smtp_banner); - if (s == NULL) + if (!(s = expand_string(smtp_banner))) log_write(0, LOG_MAIN|LOG_PANIC_DIE, "Expansion of \"%s\" (smtp_banner) " "failed: %s", smtp_banner, expand_string_message); }