From b5b089922663db3f18f45b7b9b4e20171be27d4a Mon Sep 17 00:00:00 2001 From: Peter Johnson Date: Mon, 26 Dec 2016 13:55:21 -0800 Subject: [PATCH] Revert "Fixes TCPAcceptor able to use an empty string (#172)" This doesn't actually do anything since the outer if statement checks for empty m_address already. This reverts commit 6ad9f45d9a89cb425bd52e99726ff420ae5e587f. --- wpiutil/src/tcpsockets/TCPAcceptor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wpiutil/src/tcpsockets/TCPAcceptor.cpp b/wpiutil/src/tcpsockets/TCPAcceptor.cpp index 12a4f82..db5d608 100644 --- a/wpiutil/src/tcpsockets/TCPAcceptor.cpp +++ b/wpiutil/src/tcpsockets/TCPAcceptor.cpp @@ -90,7 +90,7 @@ int TCPAcceptor::start() { #else int res = inet_pton(PF_INET, m_address.c_str(), &(address.sin_addr)); #endif - if (res != 1 && !m_address.empty()) { + if (res != 1) { WPI_ERROR(m_logger, "could not resolve " << m_address << " address"); return -1; }