]> arthur.barton.de Git - ngircd.git/blobdiff - src/ngircd/parse.c
Spoofed prefixes: Really kill connection on non-server links
[ngircd.git] / src / ngircd / parse.c
index 2c7ba94d5a1e793cf37b25d8c25f3e36185c96d4..ba4d8f5b3a434b3382887a5b6bf71217b41e9766 100644 (file)
@@ -345,7 +345,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);