summaryrefslogtreecommitdiff
path: root/src/conf.c
diff options
context:
space:
mode:
authormichael <michael@82007160-df01-0410-b94d-b575c5fd34c7>2013-06-21 14:00:24 +0000
committermichael <michael@82007160-df01-0410-b94d-b575c5fd34c7>2013-06-21 14:00:24 +0000
commit41ed63ef051b6948a5a38be0622989caeb0c475e (patch)
tree0920483202c7eec75b8acff03ad22f3abf58724c /src/conf.c
parent953aa3f52086bd836762c1d14f5b5551d1110eb0 (diff)
- conf.c:attach_iline(): there should never be a conf that hasn't a class attached
to it. Let it crash if it's otherwise git-svn-id: svn://svn.ircd-hybrid.org/svnroot/ircd-hybrid/branches/8.1.x@2316 82007160-df01-0410-b94d-b575c5fd34c7
Diffstat (limited to 'src/conf.c')
-rw-r--r--src/conf.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/conf.c b/src/conf.c
index 3339d69..bb6a354 100644
--- a/src/conf.c
+++ b/src/conf.c
@@ -383,13 +383,12 @@ attach_iline(struct Client *client_p, struct MaskItem *conf)
int a_limit_reached = 0;
unsigned int local = 0, global = 0, ident = 0;
+ assert(conf->class);
+
ip_found = find_or_add_ip(&client_p->localClient->ip);
ip_found->count++;
SetIpHash(client_p);
- if (conf->class == NULL)
- return NOT_AUTHORIZED; /* If class is missing, this is best */
-
class = conf->class;
count_user_host(client_p->username, client_p->host,