From 836a0b159f46044a81b373323d0b332bfabd3ec4 Mon Sep 17 00:00:00 2001 From: brain Date: Fri, 23 Apr 2004 12:31:31 +0000 Subject: Message forwarding fixes git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@702 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/commands.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/commands.cpp b/src/commands.cpp index c142e58b2..553f2db58 100644 --- a/src/commands.cpp +++ b/src/commands.cpp @@ -1851,6 +1851,12 @@ void handle_R(char token,char* params,serverrec* source,serverrec* reply, char* { char* server = strtok(params," "); char* data = strtok(NULL,"\r\n"); + if ((!data) || (!server)) + { + log(DEBUG,"Someones playing silly buggers, attempting to send to a null server or send a null message (BUG?)"); + return; + } + log(DEBUG,"Forwarded packet '%s' to '%s'",data,server); NetSendToOne(server,data); } -- cgit v1.2.3