]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-smtp: server: Fix reporting of XCLIENT capability in EHLO response.
authorStephan Bosch <stephan.bosch@dovecot.fi>
Wed, 14 Feb 2018 00:30:14 +0000 (01:30 +0100)
committerStephan Bosch <stephan.bosch@dovecot.fi>
Wed, 14 Feb 2018 00:30:14 +0000 (01:30 +0100)
The trusted connection check logic was inverted.

src/lib-smtp/smtp-server-reply.c

index 74a7a14d1fcf94eaea4a53836157f9a9b005322b..6c034f3207b2ab21a8bdb4574e1fe53aa8ebab97 100644 (file)
@@ -520,7 +520,7 @@ void smtp_server_reply_ehlo_add_xclient(struct smtp_server_reply *reply)
        struct smtp_server_cmd_ctx *cmd = &reply->command->context;
        struct smtp_server_connection *conn = cmd->conn;
 
-       if (smtp_server_connection_is_trusted(conn))
+       if (!smtp_server_connection_is_trusted(conn))
                return;
        if (conn->set.xclient_extensions == NULL ||
            *conn->set.xclient_extensions == NULL) {