diff options
author | michael <michael@82007160-df01-0410-b94d-b575c5fd34c7> | 2013-06-21 14:00:24 +0000 |
---|---|---|
committer | michael <michael@82007160-df01-0410-b94d-b575c5fd34c7> | 2013-06-21 14:00:24 +0000 |
commit | 41ed63ef051b6948a5a38be0622989caeb0c475e (patch) | |
tree | 0920483202c7eec75b8acff03ad22f3abf58724c /src/conf.c | |
parent | 953aa3f52086bd836762c1d14f5b5551d1110eb0 (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.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -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, |