[dovecot-cvs] dovecot/src/login-common auth-common.c,1.1,1.2

cras at procontrol.fi cras at procontrol.fi
Sat Feb 8 14:15:15 EET 2003


Update of /home/cvs/dovecot/src/login-common
In directory danu:/tmp/cvs-serv16666

Modified Files:
	auth-common.c 
Log Message:
Don't crash if authentication was aborted too early.



Index: auth-common.c
===================================================================
RCS file: /home/cvs/dovecot/src/login-common/auth-common.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- auth-common.c	2 Feb 2003 10:46:20 -0000	1.1
+++ auth-common.c	8 Feb 2003 12:15:12 -0000	1.2
@@ -30,8 +30,10 @@
 
 	if (reply == NULL) {
 		/* failed */
-                auth_request_unref(client->auth_request);
-		client->auth_request = NULL;
+		if (client->auth_request != NULL) {
+			auth_request_unref(client->auth_request);
+			client->auth_request = NULL;
+		}
 		*error = "Authentication process died.";
 		return -1;
 	}




More information about the dovecot-cvs mailing list