diff --git a/src/select.cpp b/src/select.cpp index 3da6fb7e..7a80067d 100644 --- a/src/select.cpp +++ b/src/select.cpp @@ -435,6 +435,7 @@ bool zmq::select_t::is_retired_fd (const fd_entry_t &entry) #if defined ZMQ_HAVE_WINDOWS u_short zmq::select_t::get_fd_family (fd_t fd_) { + // Use sockaddr_storage instead of sockaddr to accomodate differect structure sizes sockaddr_storage addr = { 0 }; int addr_size = sizeof addr;