diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2004-04-23 12:28:32 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2004-04-23 12:28:32 +0000 |
commit | a423766f8b15e38aae9430b928bed53394af1c88 (patch) | |
tree | d613dbe23266b41f79701e80572b844acad7a611 | |
parent | d944fc0b6c14048063d6a9da08f1276a56e775d3 (diff) |
Crash fix
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@701 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r-- | src/connection.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/connection.cpp b/src/connection.cpp index ec3007a8c..61c3c5bfe 100644 --- a/src/connection.cpp +++ b/src/connection.cpp @@ -334,6 +334,9 @@ void ircd_connector::SetDescriptor(int fd) bool connection::SendPacket(char *message, const char* host) { + if ((!message) || (!host)) + return true; + ircd_connector* cn = this->FindHost(host); if (!strchr(message,'\n')) |