From 78a80db9f410c317c039f13ae2eb2bac389705d0 Mon Sep 17 00:00:00 2001 From: Tom Early Date: Wed, 3 Apr 2019 15:33:55 -0700 Subject: [PATCH] wrong logic for family check --- TCPReaderWriterClient.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TCPReaderWriterClient.cpp b/TCPReaderWriterClient.cpp index c30ed45..5773f82 100644 --- a/TCPReaderWriterClient.cpp +++ b/TCPReaderWriterClient.cpp @@ -61,7 +61,7 @@ bool CTCPReaderWriterClient::open() return true; } - if (AF_INET!=m_family || AF_INET6!=m_family || AF_UNSPEC!=m_family) { + if (AF_INET!=m_family && AF_INET6!=m_family &&_UNSPEC!=m_family) { fprintf(stderr, "ERROR: family must be AF_INET, AF_INET6 or AF_UNSPEC\n"); return true; }