]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-smtp: smtp-server-command - Always end input lock/capture upon reply submission.
authorStephan Bosch <stephan.bosch@open-xchange.com>
Wed, 24 Jun 2020 08:45:38 +0000 (10:45 +0200)
committertimo.sirainen <timo.sirainen@open-xchange.com>
Wed, 7 Oct 2020 11:45:27 +0000 (11:45 +0000)
src/lib-smtp/smtp-server-command.c

index 68643f8c33c7962edab547cef300738656d7d408..c19ec197318c1623e88b83b0d38aeda2aac1ef35 100644 (file)
@@ -523,6 +523,9 @@ smtp_server_command_handle_reply(struct smtp_server_command *cmd)
        if (!smtp_server_command_replied(&cmd))
                return smtp_server_connection_unref(&conn);
 
+       if (cmd->input_locked)
+               smtp_server_command_input_unlock(&cmd->context);
+
        /* Submit reply */
        switch (cmd->state) {
        case SMTP_SERVER_COMMAND_STATE_NEW: