]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
po3pc: Handle unexpected server disconnections without assert-crash
authorTimo Sirainen <timo.sirainen@dovecot.fi>
Fri, 13 Apr 2018 10:33:56 +0000 (13:33 +0300)
committerTimo Sirainen <timo.sirainen@dovecot.fi>
Tue, 17 Apr 2018 11:24:58 +0000 (14:24 +0300)
Fixes: Panic: file pop3c-client.c: line 308 (pop3c_client_wait_one): assertion failed: (client->fd != -1 || client->state == POP3C_CLIENT_STATE_CONNECTING)
src/lib-storage/index/pop3c/pop3c-client.c

index 93f0c0d15a955709ddee2c6d6a5f057a3eec4c16..f833dfc117960adc854e11954fa5bd6e95eeb645 100644 (file)
@@ -302,6 +302,7 @@ void pop3c_client_wait_one(struct pop3c_client *client)
            array_count(&client->commands) > 0) {
                while (array_count(&client->commands) > 0)
                        pop3c_client_async_callback_disconnected(client);
+               return;
        }
 
        i_assert(client->fd != -1 ||