dovecot-2.1: auth: Don't assert-crash if login client disconnect...

dovecot at dovecot.org dovecot at dovecot.org
Fri Sep 16 16:59:32 EEST 2011


details:   http://hg.dovecot.org/dovecot-2.1/rev/0dffdc3bfad1
changeset: 13488:0dffdc3bfad1
user:      Timo Sirainen <tss at iki.fi>
date:      Thu Sep 15 13:09:50 2011 +0300
description:
auth: Don't assert-crash if login client disconnects during multi-reply mechanism.

diffstat:

 src/auth/auth-request-handler.c |  3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diffs (13 lines):

diff -r 0264ac68c770 -r 0dffdc3bfad1 src/auth/auth-request-handler.c
--- a/src/auth/auth-request-handler.c	Thu Sep 15 12:34:03 2011 +0300
+++ b/src/auth/auth-request-handler.c	Thu Sep 15 13:09:50 2011 +0300
@@ -244,6 +244,9 @@
 		   anything but abort this request */
 		request->internal_failure = TRUE;
 		result = AUTH_CLIENT_RESULT_FAILURE;
+		/* make sure this request is set to finished state
+		   (it's not with result=continue) */
+		auth_request_set_state(request, AUTH_REQUEST_STATE_FINISHED);
 	}
 
 	reply = auth_stream_reply_init(pool_datastack_create());


More information about the dovecot-cvs mailing list