[cvslog] Module eggdrop1.7: Change committed

cvslog cvs at tsss.org
Tue Oct 16 21:03:00 CST 2001


CVSROOT    : /usr/local/cvsroot
Module     : eggdrop1.7
Commit time: 2001-10-17 02:02:06 UTC
Commited by: Matthew Hallacy <poptix at techmonkeys.org>

Modified files:
     src/patch.h src/tcluser.c

Log message:

* bad pointer in tcl_userlist, userlist * = crash

---------------------- diff included ----------------------
Index: eggdrop1.7/src/patch.h
diff -u eggdrop1.7/src/patch.h:1.551 eggdrop1.7/src/patch.h:1.552
--- eggdrop1.7/src/patch.h:1.551	Mon Oct 15 13:47:36 2001
+++ eggdrop1.7/src/patch.h	Tue Oct 16 21:01:56 2001
@@ -10,7 +10,7 @@
  * statement, leave the rest of the file alone, this allows better
  * overlapping patches.
  *
- * $Id: patch.h,v 1.551 2001/10/15 18:47:36 poptix Exp $
+ * $Id: patch.h,v 1.552 2001/10/17 02:01:56 poptix Exp $
  */
 /*
  * Copyright (C) 1997 Robey Pointer
@@ -41,12 +41,12 @@
  *
  *
  */
-patch("1003171377");		/* current unixtime */
+patch("1003283804");		/* current unixtime */
 /*
  *
  *
  */
-patch("adduser3");
+patch("userlist");
 /*
  *
  *
Index: eggdrop1.7/src/tcluser.c
diff -u eggdrop1.7/src/tcluser.c:1.25 eggdrop1.7/src/tcluser.c:1.26
--- eggdrop1.7/src/tcluser.c:1.25	Wed Oct 10 05:44:04 2001
+++ eggdrop1.7/src/tcluser.c	Tue Oct 16 21:01:56 2001
@@ -2,7 +2,7 @@
  * tcluser.c -- handles:
  *   Tcl stubs for the user-record-oriented commands
  *
- * $Id: tcluser.c,v 1.25 2001/10/10 10:44:04 tothwolf Exp $
+ * $Id: tcluser.c,v 1.26 2001/10/17 02:01:56 poptix Exp $
  */
 /*
  * Copyright (C) 1997 Robey Pointer
@@ -357,7 +357,10 @@
   for (u = userlist; u; u = u->next) {
     if (argc >= 2) {
       user.match = FR_GLOBAL | FR_CHAN | FR_BOT | (argc == 3 ? 0 : FR_ANYWH);
-      get_user_flagrec(u, &user, argv[2]);	/* argv[2] == NULL for argc = 2 ;) */
+      if (argc == 3) 
+        get_user_flagrec(u, &user, argv[2]);
+      else 
+        get_user_flagrec(u, &user, NULL);
       if (flagrec_eq(&plus, &user) && !(f && flagrec_eq(&minus, &user)))
 	ok = 1;
       else
----------------------- End of diff -----------------------



More information about the Changes mailing list