From 0dac30984a741c83bd094d7eb8b23a27013d5971 Mon Sep 17 00:00:00 2001 From: irfan Date: Fri, 15 Oct 1999 22:44:22 +0000 Subject: ChangeLogTag:Fri Oct 15 17:28:05 1999 Irfan Pyarali --- ace/Connector.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'ace/Connector.cpp') diff --git a/ace/Connector.cpp b/ace/Connector.cpp index 02d3e1d54b8..6e950be636c 100644 --- a/ace/Connector.cpp +++ b/ace/Connector.cpp @@ -468,7 +468,8 @@ ACE_Connector::connect_i (SH *&sh, ACE_Errno_Guard error (errno); // Make sure to close down the Channel to avoid descriptor // leaks. - new_sh->close (0); + if (new_sh) + new_sh->close (0); } return -1; } -- cgit v1.2.1