[cvslog] (2005-12-01 15:02:42 UTC) Module eggdrop1.9: Change committed!

cvslog cvs at tsss.org
Thu Dec 1 09:02:42 CST 2005


CVSROOT    : /usr/local/cvsroot
Module     : eggdrop1.9
Commit time: 2005-12-01 15:02:42 UTC
Commited by: stdarg <stdarg at techmonkeys.org>

Modified files:
     lib/eggdrop/ident.c

Log message:

* Remove ident_info from linked list in ident_result()

---------------------- diff included ----------------------
Index: eggdrop1.9/lib/eggdrop/ident.c
diff -u eggdrop1.9/lib/eggdrop/ident.c:1.4 eggdrop1.9/lib/eggdrop/ident.c:1.5
--- eggdrop1.9/lib/eggdrop/ident.c:1.4	Tue May 10 01:50:39 2005
+++ eggdrop1.9/lib/eggdrop/ident.c	Thu Dec  1 09:02:32 2005
@@ -18,7 +18,7 @@
  */
 
 #ifndef lint
-static const char rcsid[] = "$Id: ident.c,v 1.4 2005/05/10 06:50:39 stdarg Exp $";
+static const char rcsid[] = "$Id: ident.c,v 1.5 2005/12/01 15:02:32 stdarg Exp $";
 #endif
 
 #include <stdio.h>
@@ -161,6 +161,16 @@
 static int ident_result(void *client_data, const char *ident)
 {
 	ident_info_t *ident_info = client_data;
+	ident_info_t *ptr, *prev = NULL;
+	
+	for (ptr = ident_head; ptr; ptr = ptr->next) {
+		if (ptr == ident_info) break;
+		prev = ptr;
+	}
+
+	if (prev) prev->next = ptr->next;
+	else ident_head = ptr->next;
+
 	sockbuf_delete(ident_info->idx);
 	ident_info->callback(ident_info->client_data, ident_info->ip, ident_info->their_port, ident);
 	free(ident_info->ip);
----------------------- End of diff -----------------------



More information about the Changes mailing list