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 f6792da0712..ac31c2ad7c4 100644
--- a/ace/INET_Addr.cpp
+++ b/ace/INET_Addr.cpp
@@ -406,7 +406,7 @@ ACE_INET_Addr::set (const char port_name[],
ACE_TRACE ("ACE_INET_Addr::set");
int port_number = get_port_number_from_name (port_name, protocol);
- if (port_number < 0)
+ if (port_number == -1)
{
ACE_UNUSED_ARG (inet_address);
ACE_NOTSUP_RETURN (-1);