X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fngircd%2Fparse.c;h=28dee6fc90c374a6d087ce0a3190b7dc94be2c99;hb=03e656807930cffc34a76a31635e4d3ad79c4378;hp=94230c87a099c9d5eacb40016d5a6c790603ecef;hpb=a13bb78b1e7adf7c261ac427341c397ef9a6a1ed;p=ngircd-alex.git diff --git a/src/ngircd/parse.c b/src/ngircd/parse.c index 94230c87..28dee6fc 100644 --- a/src/ngircd/parse.c +++ b/src/ngircd/parse.c @@ -342,7 +342,7 @@ Validate_Prefix( CONN_ID Idx, REQUEST *Req, bool *Closed ) /* 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);