diff options
| author | Alexander Barton <alex@barton.de> | 2014-03-18 16:27:03 +0100 |
|---|---|---|
| committer | Alexander Barton <alex@barton.de> | 2014-03-18 16:30:38 +0100 |
| commit | 5009ab3e8c5a6fe7db5c5ad1d3fdc8aecfc64b55 (patch) | |
| tree | 4222aeab59ec325ff83fd5c29d0a15e74fd579fd /src | |
| parent | 5713c49c8480639f08f7fff82fb5a40e8566e1dc (diff) | |
| download | ngircd-5009ab3e8c5a6fe7db5c5ad1d3fdc8aecfc64b55.tar.gz ngircd-5009ab3e8c5a6fe7db5c5ad1d3fdc8aecfc64b55.zip | |
Spoofed prefixes: Really kill connection on non-server links
This fixes commit 6cbe1308 which only killed the connection when the spoofed prefix itself belonged to a non-server client.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ngircd/parse.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |