summaryrefslogtreecommitdiff
path: root/TAO/tao/IIOP_Connector.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/tao/IIOP_Connector.cpp')
-rw-r--r--TAO/tao/IIOP_Connector.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/TAO/tao/IIOP_Connector.cpp b/TAO/tao/IIOP_Connector.cpp
index 09c3fcdf4d6..dadcb2fc587 100644
--- a/TAO/tao/IIOP_Connector.cpp
+++ b/TAO/tao/IIOP_Connector.cpp
@@ -85,8 +85,10 @@ TAO_IIOP_Connector::close (void)
}
int
-TAO_IIOP_Connector::preconnect (char *preconnections)
+TAO_IIOP_Connector::preconnect (const char *preconnects)
{
+ char *preconnections = ACE_OS::strdup (preconnects);
+
#if 0
if (preconnections)
{
@@ -209,6 +211,9 @@ TAO_IIOP_Connector::preconnect (char *preconnections)
}
}
#endif /* 0 */
+
+ ACE_OS::free (preconnections);
+
return successes;
}