From: Karl Fleischmann Date: Fri, 16 May 2025 13:23:27 +0000 (+0200) Subject: submission-login: cmd_helo_reply() - Only check against SMTP UTF8 if feature is enabled X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=8e360648c36a7e1a6029762d3277c4d2b05ff41c;p=thirdparty%2Fdovecot%2Fcore.git submission-login: cmd_helo_reply() - Only check against SMTP UTF8 if feature is enabled Issued by coverity deadcode error. --- diff --git a/src/submission-login/client-authenticate.c b/src/submission-login/client-authenticate.c index 6c5a0b81c6..243c00d6f7 100644 --- a/src/submission-login/client-authenticate.c +++ b/src/submission-login/client-authenticate.c @@ -51,9 +51,11 @@ static void cmd_helo_reply(struct submission_client *subm_client, "AUTH", "%s", str_c(param)); } +#ifdef EXPERIMENTAL_MAIL_UTF8 if ((backend_caps & SMTP_CAPABILITY_SMTPUTF8) != 0 && subm_client->set->mail_utf8_extensions) smtp_server_reply_ehlo_add(reply, "SMTPUTF8"); +#endif /* EXPERIMENTAL_MAIL_UTF8 */ if ((backend_caps & SMTP_CAPABILITY_BINARYMIME) != 0 && (backend_caps & SMTP_CAPABILITY_CHUNKING) != 0) smtp_server_reply_ehlo_add(reply, "BINARYMIME");