[dovecot-cvs] dovecot/src/auth auth-request.c,1.15,1.16

cras at dovecot.org cras at dovecot.org
Sat Mar 12 20:20:11 EET 2005


Update of /var/lib/cvs/dovecot/src/auth
In directory talvi:/tmp/cvs-serv5949

Modified Files:
	auth-request.c 
Log Message:
Crashfix. Patch by Andrey Panin.



Index: auth-request.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/auth/auth-request.c,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -d -r1.15 -r1.16
--- auth-request.c	7 Mar 2005 20:21:52 -0000	1.15
+++ auth-request.c	12 Mar 2005 18:20:09 -0000	1.16
@@ -151,7 +151,8 @@
 	}
 
 	/* save all except the currently given password in cache */
-	str = t_str_new(32 + str_len(request->extra_fields));
+	str = t_str_new(32 + (request->extra_fields != NULL ? 
+			      str_len(request->extra_fields) : 0));
 	if (*request->passdb_password != '{') {
 		/* cached passwords must have a known scheme */
 		str_append_c(str, '{');



More information about the dovecot-cvs mailing list