summaryrefslogtreecommitdiff
path: root/os/connection.c
diff options
context:
space:
mode:
Diffstat (limited to 'os/connection.c')
-rw-r--r--os/connection.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/os/connection.c b/os/connection.c
index 47bee88..1ca49af 100644
--- a/os/connection.c
+++ b/os/connection.c
@@ -762,6 +762,8 @@ CloseDownConnection(client)
{
OsCommPtr oc = (OsCommPtr)client->osPrivate;
+ if(!oc)
+ return;
if (oc->output && oc->output->count)
FlushClient(client, oc, (char *)NULL, 0);
ConnectionTranslation[oc->fd] = 0;