]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-smtp: Reformat smtp-server-cmd-noop.c.
authorStephan Bosch <stephan.bosch@open-xchange.com>
Tue, 24 Mar 2020 20:08:37 +0000 (21:08 +0100)
committeraki.tuomi <aki.tuomi@open-xchange.com>
Wed, 20 May 2020 05:26:26 +0000 (05:26 +0000)
src/lib-smtp/smtp-server-cmd-noop.c

index 4986f800c844964df6594fc39006db69dc819fc1..e798a5798565cfff259a99cb0f385d7205ceeaf3 100644 (file)
@@ -26,7 +26,8 @@ void smtp_server_cmd_noop(struct smtp_server_cmd_ctx *cmd,
        smtp_server_command_ref(command);
        if (callbacks != NULL && callbacks->conn_cmd_noop != NULL) {
                /* specific implementation of NOOP command */
-               if ((ret=callbacks->conn_cmd_noop(conn->context, cmd)) <= 0) {
+               ret = callbacks->conn_cmd_noop(conn->context, cmd);
+               if (ret <= 0) {
                        i_assert(ret == 0 ||
                                 smtp_server_command_is_replied(command));
                        /* command is waiting for external event or it failed */