diff options
author | Pavel Labath <labath@google.com> | 2016-02-03 11:12:23 +0000 |
---|---|---|
committer | Pavel Labath <labath@google.com> | 2016-02-03 11:12:23 +0000 |
commit | 1b58f5cbbb757bea043b863e52fc10e6e7dd7f90 (patch) | |
tree | c7c5fd121a1d330edf2802663f22c5ebd629b41a /lldb/source/Host/common | |
parent | 323862e13ca421175b82617977f80b88e9f6cfe9 (diff) | |
download | bcm5719-llvm-1b58f5cbbb757bea043b863e52fc10e6e7dd7f90.tar.gz bcm5719-llvm-1b58f5cbbb757bea043b863e52fc10e6e7dd7f90.zip |
Fix an off-by-one in SocketTest::DecodeHostAndPort
65535 is still a valid port. This should fix the android failures we were getting when we chose
to connect over 65535 to the remote lldb-server.
llvm-svn: 259638
Diffstat (limited to 'lldb/source/Host/common')
-rw-r--r-- | lldb/source/Host/common/Socket.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Host/common/Socket.cpp b/lldb/source/Host/common/Socket.cpp index 91a5e37424e..ea049ae6933 100644 --- a/lldb/source/Host/common/Socket.cpp +++ b/lldb/source/Host/common/Socket.cpp @@ -268,7 +268,7 @@ Socket::DecodeHostAndPort(llvm::StringRef host_and_port, { bool ok = false; port = StringConvert::ToUInt32 (port_str.c_str(), UINT32_MAX, 10, &ok); - if (ok && port < UINT16_MAX) + if (ok && port <= UINT16_MAX) { if (error_ptr) error_ptr->Clear(); |