]> jfr.im git - irc/quakenet/newserv.git/commitdiff
Fix incorrect variable name.
authorGunnar Beutner <redacted>
Wed, 31 Jul 2013 22:57:22 +0000 (00:57 +0200)
committerGunnar Beutner <redacted>
Wed, 31 Jul 2013 22:57:22 +0000 (00:57 +0200)
--HG--
branch : shroudtrusts

trusts/trusts_policy.c

index 0fac02bf2cab9f514382d881cef6ed5e1e325c91..af7a080bb1bde1e6b6a585eece856e42139ec187 100644 (file)
@@ -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);