]> 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>
Mon, 30 Apr 2018 13:21:29 +0000 (16:21 +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 82fdf70fe042055f6629e53a7d11d68389cee262..e34efc3af09b63a8d7f8e5a3e41d821238d3b119 100644 (file)
@@ -295,6 +295,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 ||