]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
pop3-login: Cleanup - uncork output unconditionally before client_unref()
authorTimo Sirainen <timo.sirainen@dovecot.fi>
Wed, 1 Nov 2017 19:44:23 +0000 (21:44 +0200)
committerTimo Sirainen <tss@dovecot.fi>
Thu, 2 Nov 2017 12:32:23 +0000 (14:32 +0200)
src/pop3-login/client.c

index 6b67507ff25113f16d218d35ed2e22ae1ab9916d..bd5de4784df33123681a11a522c3988f3fa5ecf6 100644 (file)
@@ -137,8 +137,8 @@ static void pop3_client_input(struct client *client)
        if (auth_client != NULL && !auth_client_is_connected(auth_client))
                client->input_blocked = TRUE;
 
-       if (client_unref(&client))
-               o_stream_uncork(client->output);
+       o_stream_uncork(client->output);
+       client_unref(&client);
 }
 
 static bool pop3_client_input_next_cmd(struct client *client)