]> jfr.im git - irc/quakenet/newserv.git/commitdiff
NTERFACER: also using h_addr
authorChris Porter <redacted>
Sun, 4 Jan 2009 19:15:26 +0000 (19:15 +0000)
committerChris Porter <redacted>
Sun, 4 Jan 2009 19:15:26 +0000 (19:15 +0000)
nterfacer/nterfacer.c

index d6e49b4ba2dcf3fe4406484902fcea60a0b06761..9b644c276cf8df035337efbfd699a8ec8606e7ca 100644 (file)
@@ -189,7 +189,7 @@ int load_permits(void) {
       continue;
     }
 
-    item->ihost = (*(struct in_addr *)host->h_addr).s_addr;
+    item->ihost = (*(struct in_addr *)host->h_addr_list[0]).s_addr;
     for(j=0;j<loaded_lines;j++) {
       if(new_permits[j].ihost == item->ihost) {
         nterface_log(nrl, NL_WARNING, "Host with items %d and %d is identical, dropping item %d.", j + 1, i + 1, i + 1);