From a423766f8b15e38aae9430b928bed53394af1c88 Mon Sep 17 00:00:00 2001 From: brain Date: Fri, 23 Apr 2004 12:28:32 +0000 Subject: [PATCH] Crash fix git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@701 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/connection.cpp | 3 +++ 1 file changed, 3 insertions(+) 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')) -- 2.39.5