Log message:
IPcheck sucks large, hairy rocks. In this case, local clients were not
getting FLAGS_IPCHECK set, so the connected count in the IP registry was
not getting decremented when they exited. Moreover, IPcheck_remote_connect
set this bit itself, but IPcheck_local_connect cannot because the client
doesn't even exist yet. This means that the bit has to be set in s_bsd.c.
This is pretty darned annoying, but what else can one do? This should at
least fix one problem we've been having with the IPcheck code.
git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/trunk@530
c9e4aea6-c8fd-4c43-8297-
357d70d61c8c
+2001-07-12 Kevin L. Mitchell <klmitch@mit.edu>
+
+ * ircd/s_bsd.c: mark a client as having been IP checked
+
+ * ircd/IPcheck.c (ip_registry_check_remote): remove unneeded
+ second call to SetIPChecked()
+
2001-07-11 Kevin L. Mitchell <klmitch@mit.edu>
* ircd/engine_poll.c: deal with POLLHUP properly (hopefully)
entry->last_connect = NOW;
}
}
- SetIPChecked(cptr);
return 1;
}
* Copy ascii address to 'sockhost' just in case. Then we have something
* valid to put into error messages...
*/
+ SetIPChecked(new_client);
ircd_ntoa_r(cli_sock_ip(new_client), (const char*) &addr.sin_addr);
strcpy(cli_sockhost(new_client), cli_sock_ip(new_client));
(cli_ip(new_client)).s_addr = addr.sin_addr.s_addr;