Log message:
gline_find() used a call to ircd_strcmp() instead of match() when looking
up "inexact," or matching G-lines. This crept in during .06; apparently,
a cut-and-paste error when correcting a null pointer dereference.
git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/trunk@1251
c9e4aea6-c8fd-4c43-8297-
357d70d61c8c
+2004-10-18 Kevin L Mitchell <klmitch@mit.edu>
+
+ * ircd/gline.c (gline_find): unless we're looking for an exact
+ match, we should call match() on hostnames, not ircd_strcmp()
+
2004-10-17 Michael Poole <mdpoole@troilus.org>
* include/s_conf.h (ConfItem): Add new field username. Replace
ircd_strcmp(gline->gl_user, user) == 0))
break;
} else {
- if (((gline->gl_host && host && ircd_strcmp(gline->gl_host, host) == 0)
+ if (((gline->gl_host && host && match(gline->gl_host, host) == 0)
|| (!gline->gl_host && !host)) &&
((!user && ircd_strcmp(gline->gl_user, "*") == 0) ||
match(gline->gl_user, user) == 0))