]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
auth-worker: Potential crashfix at deinit
authorTimo Sirainen <tss@iki.fi>
Sun, 3 Nov 2013 19:45:37 +0000 (21:45 +0200)
committerTimo Sirainen <tss@iki.fi>
Sun, 3 Nov 2013 19:45:37 +0000 (21:45 +0200)
src/auth/auth-worker-client.c

index f5ac4608f3f0fdc6c062bacc9d4f93ce15c9f3cb..b0b39a010e757bcf0c927aaaaa58c8e016b418ac 100644 (file)
@@ -782,8 +782,9 @@ void auth_worker_client_send_error(void)
 void auth_worker_client_send_success(void)
 {
        auth_worker_client_error = FALSE;
-       if (auth_worker_client != NULL &&
-           auth_worker_client->error_sent) {
+       if (auth_worker_client == NULL)
+               return;
+       if (auth_worker_client->error_sent) {
                o_stream_nsend_str(auth_worker_client->output, "SUCCESS\n");
                auth_worker_client->error_sent = FALSE;
        }