X-Git-Url: http://git.pk910.de/?a=blobdiff_plain;f=ircd%2Fs_bsd.c;h=f5c8aebe167dbb6d4670d49b673f6bb1a21ed0d0;hb=5713fadcc7efab3a4170a465040f6003a8c0f6cc;hp=5e39f22b5da549ad07ace730cfb798239ccaf3aa;hpb=621c986d9787f195e16fded7673fbde606841678;p=ircu2.10.12-pk.git diff --git a/ircd/s_bsd.c b/ircd/s_bsd.c index 5e39f22..f5c8aeb 100644 --- a/ircd/s_bsd.c +++ b/ircd/s_bsd.c @@ -611,7 +611,7 @@ void add_connection(struct Listener* listener, int fd) { ++listener->ref_count; Count_newunknown(UserStats); - + ip_registry_connect_succeeded(new_client); /* if we've made it this far we can put the client on the auth query pile */ start_auth(new_client); } @@ -1418,7 +1418,11 @@ int connect_server(struct ConfItem* aconf, struct Client* by, Count_newunknown(UserStats); ip_registry_add_local(aconf->ipnum.s_addr); - + /* Actually we lie, the connect hasn't succeeded yet, but we have a valid + * cptr, so we register it now. + * Maybe these two calls should be merged. + */ + ip_registry_connect_succeeded(cptr); add_client_to_list(cptr); hAddClient(cptr); nextping = CurrentTime;