[dovecot-cvs] dovecot/src/auth auth-worker-client.c, 1.2, 1.3 userdb-blocking.c, 1.2, 1.3

cras at dovecot.org cras at dovecot.org
Mon Mar 7 21:16:17 EET 2005


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

Modified Files:
	auth-worker-client.c userdb-blocking.c 
Log Message:
Blocking userdb: Don't break if user wasn't found.



Index: auth-worker-client.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/auth/auth-worker-client.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- auth-worker-client.c	7 Mar 2005 18:55:13 -0000	1.2
+++ auth-worker-client.c	7 Mar 2005 19:16:15 -0000	1.3
@@ -220,7 +220,8 @@
 
 	str = t_str_new(64);
 	str_printfa(str, "%u\t", auth_request->id);
-	str_append(str, result);
+	if (result != NULL)
+		str_append(str, result);
 	str_append_c(str, '\n');
 
 	o_stream_send(client->output, str_data(str), str_len(str));

Index: userdb-blocking.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/auth/userdb-blocking.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- userdb-blocking.c	7 Mar 2005 18:55:13 -0000	1.2
+++ userdb-blocking.c	7 Mar 2005 19:16:15 -0000	1.3
@@ -10,6 +10,9 @@
 
 static void user_callback(struct auth_request *request, const char *reply)
 {
+	if (*reply == '\0')
+		reply = NULL;
+
         request->private_callback.userdb(reply, request);
 }
 



More information about the dovecot-cvs mailing list