]> jfr.im git - irc/quakenet/newserv.git/commitdiff
Use the canonicalized IP address to look up the TH.
authorGunnar Beutner <redacted>
Wed, 26 Jun 2013 15:10:02 +0000 (17:10 +0200)
committerGunnar Beutner <redacted>
Wed, 26 Jun 2013 15:10:02 +0000 (17:10 +0200)
--HG--
branch : shroudtrusts

trusts/trusts_policy.c

index 5350e4afc64bb76204d670688be6a4fc464bba9f..0ae5d0eb559fa50d5d4600420de458a8728ef056 100644 (file)
@@ -145,7 +145,7 @@ static int checkconnection(const char *username, struct irc_in_addr *ip, int hoo
   struct irc_in_addr ip_canonicalized;
   ip_canonicalize_tunnel(&ip_canonicalized, ip);
 
-  return checkconnectionth(username, &ip_canonicalized, th_getbyhost(ip), hooknum, cloneadjustment, message, messagelen);
+  return checkconnectionth(username, &ip_canonicalized, th_getbyhost(&ip_canonicalized), hooknum, cloneadjustment, message, messagelen);
 }
 
 static int trustdowrite(trustsocket *sock, char *format, ...) {