X-Git-Url: https://jfr.im/git/irc/quakenet/newserv.git/blobdiff_plain/985b645b89b5b2d301267747052283e059aee690..3898f97325dbed800d4b424e68a0c2858b8d8be7:/nterfacer/nterfacer.c diff --git a/nterfacer/nterfacer.c b/nterfacer/nterfacer.c index d6e49b4b..33c0de7b 100644 --- a/nterfacer/nterfacer.c +++ b/nterfacer/nterfacer.c @@ -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;jihost) { nterface_log(nrl, NL_WARNING, "Host with items %d and %d is identical, dropping item %d.", j + 1, i + 1, i + 1); @@ -602,7 +602,6 @@ int nterfacer_new_rline(char *line, struct esocket *socket, int *number) { if(argcount) { parsebuf = (char *)ntmalloc(strlen(pp) + 1); MemCheckR(parsebuf, RE_MEM_ERROR); - newp = parsebuf; for(newp=args[0]=parsebuf,pp++;*pp;pp++) { if((*pp == '\\') && *(pp + 1)) {