diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/commands.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
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); } |