From 41ed63ef051b6948a5a38be0622989caeb0c475e Mon Sep 17 00:00:00 2001 From: michael Date: Fri, 21 Jun 2013 14:00:24 +0000 Subject: - 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 --- src/conf.c | 5 ++--- 1 file 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, -- cgit