dovecot-2.2: checkpassword: Error handling fix

dovecot at dovecot.org dovecot at dovecot.org
Sun May 20 03:26:26 EEST 2012


details:   http://hg.dovecot.org/dovecot-2.2/rev/e3c1f3f93add
changeset: 14313:e3c1f3f93add
user:      Timo Sirainen <tss at iki.fi>
date:      Sat Mar 10 13:49:12 2012 +0200
description:
checkpassword: Error handling fix

diffstat:

 src/auth/db-checkpassword.c |  5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diffs (16 lines):

diff -r 262ac078a1e4 -r e3c1f3f93add src/auth/db-checkpassword.c
--- a/src/auth/db-checkpassword.c	Sat Mar 10 13:47:16 2012 +0200
+++ b/src/auth/db-checkpassword.c	Sat Mar 10 13:49:12 2012 +0200
@@ -86,8 +86,11 @@
 
 	*_request = NULL;
 
-	if (!request->exited)
+	if (!request->exited) {
+		hash_table_remove(request->db->clients,
+				  POINTER_CAST(request->pid));
 		child_wait_remove_pid(request->db->child_wait, request->pid);
+	}
 	checkpassword_request_close(request);
 
 	if (request->auth_password != NULL) {


More information about the dovecot-cvs mailing list