summaryrefslogtreecommitdiff
path: root/ace/INET_Addr.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'ace/INET_Addr.cpp')
-rw-r--r--ace/INET_Addr.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/ace/INET_Addr.cpp b/ace/INET_Addr.cpp
index a95818359d7..d29cb18bb75 100644
--- a/ace/INET_Addr.cpp
+++ b/ace/INET_Addr.cpp
@@ -325,7 +325,7 @@ static int get_port_number_from_name (const char port_name[],
// We try to resolve port number from its name.
#if defined (VXWORKS) || defined (CHORUS) || defined (ACE_LACKS_GETSERVBYNAME)
- port_number = -1;
+ port_number = 0;
ACE_UNUSED_ARG (port_name);
ACE_UNUSED_ARG (protocol);
#else