[dovecot-cvs] dovecot/src/lib-auth auth-client.c,1.8,1.9

cras at dovecot.org cras at dovecot.org
Sun Jan 22 17:48:59 EET 2006


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

Modified Files:
	auth-client.c 
Log Message:
If we don't have any auth sockets, don't say we're connected to it.



Index: auth-client.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-auth/auth-client.c,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -d -r1.8 -r1.9
--- auth-client.c	14 Jan 2006 18:47:23 -0000	1.8
+++ auth-client.c	22 Jan 2006 15:48:57 -0000	1.9
@@ -109,7 +109,8 @@
 bool auth_client_is_connected(struct auth_client *client)
 {
 	return !client->reconnect &&
-		client->conn_waiting_handshake_count == 0;
+		client->conn_waiting_handshake_count == 0 &&
+		client->connections != NULL;
 }
 
 void auth_client_set_connect_notify(struct auth_client *client,



More information about the dovecot-cvs mailing list