Committer : entrope
CVSROOT : /cvsroot/undernet-ircu
Module : ircu2.10
Branch tags: u2_10_12_branch
Commit time: 2006-04-07 04:00:42 UTC
Modified files:
Tag: u2_10_12_branch
ChangeLog ircd/s_auth.c
Log message:
Fix an assertion failure when client endpoint name lookup fails.
---------------------- diff included ----------------------
Index: ircu2.10/ChangeLog
diff -u ircu2.10/ChangeLog:1.710.2.90 ircu2.10/ChangeLog:1.710.2.91
--- ircu2.10/ChangeLog:1.710.2.90 Thu Apr 6 20:51:48 2006
+++ ircu2.10/ChangeLog Thu Apr 6 21:00:28 2006
@@ -1,5 +1,10 @@
2006-04-06 Michael Poole <[EMAIL PROTECTED]>
+ * ircd/s_auth.c (start_auth): Add client to list after getting
+ endpoint names (which can apparently fail for some reason).
+
+2006-04-06 Michael Poole <[EMAIL PROTECTED]>
+
* ircd/ircd_snprintf.c: Use SIZEOF_LONG_LONG (which is 0 for
unknown types) instead of the never-defined HAVE_LONG_LONG.
Index: ircu2.10/ircd/s_auth.c
diff -u ircu2.10/ircd/s_auth.c:1.37.2.6 ircu2.10/ircd/s_auth.c:1.37.2.7
--- ircu2.10/ircd/s_auth.c:1.37.2.6 Thu Mar 23 16:29:55 2006
+++ ircu2.10/ircd/s_auth.c Thu Apr 6 21:00:31 2006
@@ -31,7 +31,7 @@
*/
/** @file
* @brief Implementation of DNS and ident lookups.
- * @version $Id: s_auth.c,v 1.37.2.6 2006/03/24 00:29:55 klmitch Exp $
+ * @version $Id: s_auth.c,v 1.37.2.7 2006/04/07 04:00:31 entrope Exp $
*/
#include "config.h"
@@ -906,7 +906,6 @@
if (cli_fd(client) > HighestFd)
HighestFd = cli_fd(client);
LocalClientArray[cli_fd(client)] = client;
- add_client_to_list(client);
socket_events(&(cli_socket(client)), SOCK_ACTION_SET | SOCK_EVENT_READABLE);
/* Allocate the AuthRequest. */
@@ -948,6 +947,9 @@
start_iauth_query(auth);
}
+ /* Add client to GlobalClientList. */
+ add_client_to_list(client);
+
/* Check which auth events remain pending. */
check_auth_finished(auth, 0);
}
----------------------- End of diff -----------------------
_______________________________________________
Patches mailing list
[email protected]
http://undernet.sbg.org/mailman/listinfo/patches