Author: Ghostwolf <foxxe@wtfs.net>
authorJoseph Bongaarts <foxxe@wtfs.net>
Tue, 19 Feb 2002 22:53:04 +0000 (22:53 +0000)
committerJoseph Bongaarts <foxxe@wtfs.net>
Tue, 19 Feb 2002 22:53:04 +0000 (22:53 +0000)
Log message:
Fix core bug in gline_find()

git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/trunk@650 c9e4aea6-c8fd-4c43-8297-357d70d61c8c

ChangeLog
ircd/gline.c

index e6a6f0fe221504e349ff8755367123318620f368..c260aa763e74d3d4435f4061745b7e57351ae909 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -3,6 +3,8 @@
         * ircd/whocmds.c: Local opers should also be able to
         see servernames in /who
 
+       * ircd/gline.c: Fix core bug in gline_find()
+
 2002-02-19 John Buttery <john@io.com>
 
        * ircd/ircd.c: Updated "No such file" error message.
index 3e9970628917a548469765cb2eb05c9bbd142dd7..8ac50dfacb9b3bafdbf099bf8368404da50f3c80 100644 (file)
@@ -556,6 +556,9 @@ gline_find(char *userhost, unsigned int flags)
   DupString(t_uh, userhost);
   canon_userhost(t_uh, &user, &host, 0);
 
+  if (BadPtr(user))
+    return 0;
+
   for (gline = GlobalGlineList; gline; gline = sgline) {
     sgline = gline->gl_next;