From: Gunnar Beutner Date: Wed, 31 Jul 2013 22:57:22 +0000 (+0200) Subject: Fix incorrect variable name. X-Git-Url: https://jfr.im/git/irc/quakenet/newserv.git/commitdiff_plain/b770d939cf9d1a0fd0f23e110caf8032d26b414f Fix incorrect variable name. --HG-- branch : shroudtrusts --- diff --git a/trusts/trusts_policy.c b/trusts/trusts_policy.c index 0fac02bf..af7a080b 100644 --- a/trusts/trusts_policy.c +++ b/trusts/trusts_policy.c @@ -83,12 +83,12 @@ static int checkconnectionth(const char *username, struct irc_in_addr *ip, trust */ if(hooknum == HOOK_TRUSTS_NEWNICK) { - patricia_node_t *head, *node; + patricia_node_t *node; int nodecount = 0; - head = refnode(iptree, ip, th->nodebits); + node = refnode(iptree, ip, th->nodebits); nodecount = node->usercount; - derefnode(iptree, head); + derefnode(iptree, node); if(th->maxpernode && nodecount + usercountadjustment > th->maxpernode) { controlwall(NO_OPER, NL_CLONING, "Hard connection limit exceeded on subnet: %s (group: %s): %d connected, %d max.", CIDRtostr(*ip, th->nodebits), tg->name->content, nodecount + usercountadjustment, th->maxpernode);