dovecot-2.2: auth-worker: Potential crashfix at deinit

dovecot at dovecot.org dovecot at dovecot.org
Sun Nov 3 21:45:46 EET 2013


details:   http://hg.dovecot.org/dovecot-2.2/rev/c4fb4637a732
changeset: 16926:c4fb4637a732
user:      Timo Sirainen <tss at iki.fi>
date:      Sun Nov 03 21:45:37 2013 +0200
description:
auth-worker: Potential crashfix at deinit

diffstat:

 src/auth/auth-worker-client.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (15 lines):

diff -r a87295904845 -r c4fb4637a732 src/auth/auth-worker-client.c
--- a/src/auth/auth-worker-client.c	Sun Nov 03 21:44:06 2013 +0200
+++ b/src/auth/auth-worker-client.c	Sun Nov 03 21:45:37 2013 +0200
@@ -782,8 +782,9 @@
 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;
 	}


More information about the dovecot-cvs mailing list