summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <Alan.Coopersmith@sun.com>2005-03-09 03:20:32 +0000
committerAlan Coopersmith <Alan.Coopersmith@sun.com>2005-03-09 03:20:32 +0000
commitf865977a66448e327644d8c91b195a732d7750b3 (patch)
treef7538a8cc3e12f7a46cee690bc5f2e4b7ebb4dbd
parent7ddd16e116f98daf82e0aa19f3d4128700f9f1d7 (diff)
#2051 (https://bugs.freedesktop.org/attachment.cgi?id=2051) lbxproxy core dumps on exit if clients have had authentication failures (Sun bug #5074303 - Fix by Derek Wang <derek.wang@sun.com>)
-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;