From c32462cde064e081e2621acedc09645b01aefce6 Mon Sep 17 00:00:00 2001 From: Jovan Bunjevacki Date: Sat, 30 May 2020 20:30:23 +0200 Subject: [PATCH] Small fix. --- src/ip.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ip.cpp b/src/ip.cpp index 1aea23a8..7550bdec 100644 --- a/src/ip.cpp +++ b/src/ip.cpp @@ -104,7 +104,7 @@ zmq::fd_t zmq::open_socket (int domain_, int type_, int protocol_) // the race condition in making it non-inheritable later is avoided const fd_t s = WSASocket (domain_, type_, protocol_, NULL, 0, - WSA_FLAG_OVERLAPPED || WSA_FLAG_NO_HANDLE_INHERIT); + WSA_FLAG_OVERLAPPED | WSA_FLAG_NO_HANDLE_INHERIT); #else const fd_t s = socket (domain_, type_, protocol_); #endif