From 12f2b0400856c6866900bd4dba064a5d309b5ddb Mon Sep 17 00:00:00 2001 From: Joseph Bongaarts Date: Tue, 19 Feb 2002 22:53:04 +0000 Subject: [PATCH] Author: Ghostwolf 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 | 2 ++ ircd/gline.c | 3 +++ 2 files changed, 5 insertions(+) diff --git a/ChangeLog b/ChangeLog index e6a6f0f..c260aa7 100644 --- 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 * ircd/ircd.c: Updated "No such file" error message. diff --git a/ircd/gline.c b/ircd/gline.c index 3e99706..8ac50df 100644 --- a/ircd/gline.c +++ b/ircd/gline.c @@ -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; -- 2.20.1