diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/ngircd/irc-server.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/ngircd/irc-server.c b/src/ngircd/irc-server.c index 317a3e1a..10f1ef69 100644 --- a/src/ngircd/irc-server.c +++ b/src/ngircd/irc-server.c @@ -186,6 +186,15 @@ IRC_SERVER( CLIENT *Client, REQUEST *Req ) if (!Client_CheckID(Client, Req->argv[0])) return DISCONNECTED; + if (!Req->prefix) { + /* We definitely need a prefix here! */ + Log(LOG_ALERT, "Got SERVER command without prefix! (on connection %d)", + Client_Conn(Client)); + Conn_Close(Client_Conn(Client), NULL, + "SERVER command without prefix", true); + return DISCONNECTED; + } + from = Client_Search( Req->prefix ); if (! from) { /* Uh, Server, that introduced the new server is unknown?! */ |