commit - 5713c49c8480639f08f7fff82fb5a40e8566e1dc
commit + 5009ab3e8c5a6fe7db5c5ad1d3fdc8aecfc64b55
blob - 94230c87a099c9d5eacb40016d5a6c790603ecef
blob + 28dee6fc90c374a6d087ce0a3190b7dc94be2c99
--- src/ngircd/parse.c
+++ src/ngircd/parse.c
/* check if the client named in the prefix is expected
* to come from that direction */
if (Client_NextHop(c) != client) {
- if (Client_Type(c) != CLIENT_SERVER) {
+ if (Client_Type(client) != CLIENT_SERVER) {
Log(LOG_ERR,
"Spoofed prefix \"%s\" from \"%s\" (connection %d, command \"%s\"), closing connection!",
Req->prefix, Client_ID(client), Idx, Req->command);