]> granicus.if.org Git - ngircd/commitdiff
Check G/K-Lines before the client has been registered, too
authorAlexander Barton <alex@barton.de>
Sun, 22 Jan 2012 17:35:54 +0000 (18:35 +0100)
committerAlexander Barton <alex@barton.de>
Sun, 22 Jan 2012 17:35:54 +0000 (18:35 +0100)
This allows to use "*!<user>@<host>" or "*!*@<host>" masks to reject
clients even before receiving PASS, NICK and USER commands and before
forking authentication child processes which reduces resource usage.

src/ngircd/conn.c

index 5f3c18afd0108fe8eb115c236257cc3c2879bcd7..40a2af6e17f5b10f24467833b0f8ac4c9043020b 100644 (file)
@@ -2225,6 +2225,7 @@ cb_Read_Resolver_Result( int r_fd, UNUSED short events )
                                        "NOTICE AUTH :*** No ident response");
                }
 #endif
+               Class_HandleServerBans(c);
        }
 #ifdef DEBUG
                else Log( LOG_DEBUG, "Resolver: discarding result for already registered connection %d.", i );