[dovecot-cvs] dovecot/src/lib-auth auth-server-connection.c, 1.13,
1.14
cras at dovecot.org
cras at dovecot.org
Fri Oct 28 20:11:38 EEST 2005
Update of /var/lib/cvs/dovecot/src/lib-auth
In directory talvi:/tmp/cvs-serv32460/src/lib-auth
Modified Files:
auth-server-connection.c
Log Message:
Give error message if auth server didn't return mechanism list.
Index: auth-server-connection.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-auth/auth-server-connection.c,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -d -r1.13 -r1.14
--- auth-server-connection.c 14 Aug 2005 20:39:22 -0000 1.13
+++ auth-server-connection.c 28 Oct 2005 17:11:36 -0000 1.14
@@ -107,6 +107,11 @@
conn->available_auth_mechs_count =
conn->auth_mechs_buf->used / sizeof(struct auth_mech_desc);
+ if (conn->available_auth_mechs_count == 0) {
+ i_error("BUG: Authentication server returned no mechanisms");
+ return FALSE;
+ }
+
conn->handshake_received = TRUE;
conn->client->conn_waiting_handshake_count--;
update_available_auth_mechs(conn);
More information about the dovecot-cvs
mailing list