summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/connection.cpp3
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'))