From 8901cbdc7435a3fa380faeddd3dde060340e3b2b Mon Sep 17 00:00:00 2001 From: Valery Yatsko Date: Wed, 2 Apr 2008 16:12:49 +0400 Subject: [PATCH] add_reject fix - please check!!! --- src/s_user.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/s_user.c b/src/s_user.c index 2531a06..1d385e1 100644 --- a/src/s_user.c +++ b/src/s_user.c @@ -414,7 +414,7 @@ register_local_user(struct Client *client_p, struct Client *source_p, const char (xconf = find_xline(source_p->info, 1)) != NULL) { ServerStats.is_ref++; - add_reject(source_p, xconf->name, NULL); + add_reject(source_p); exit_client(client_p, source_p, &me, "Bad user info"); return CLIENT_EXITED; } @@ -446,7 +446,7 @@ register_local_user(struct Client *client_p, struct Client *source_p, const char sendto_one_notice(source_p, ":*** Your IP address %s is listed in %s", source_p->sockhost, source_p->preClient->dnsbl_listed->host); source_p->preClient->dnsbl_listed->hits++; - add_reject(source_p, NULL, NULL); + add_reject(source_p); exit_client(client_p, source_p, &me, "*** Banned (DNS blacklist)"); return CLIENT_EXITED; } @@ -526,7 +526,6 @@ register_local_user(struct Client *client_p, struct Client *source_p, const char Count.invisi++; s_assert(!IsClient(source_p)); - del_unknown_ip(source_p); rb_dlinkMoveNode(&source_p->localClient->tnode, &unknown_list, &lclient_list); SetClient(source_p);