check rc in make_fdpair

since it can fail, e.g. Windows + AF_UNIX
This commit is contained in:
Min RK 2022-09-08 11:17:51 +02:00
parent 4e193f36fc
commit b2921d7183
No known key found for this signature in database
GPG Key ID: 809C6E46EAA899F4

View File

@ -239,6 +239,8 @@ void zmq::norm_engine_t::plug (io_thread_t *io_thread_,
#ifdef ZMQ_USE_NORM_SOCKET_WRAPPER
norm_wrapper_thread_args_t *threadArgs = new norm_wrapper_thread_args_t;
int rc = make_fdpair (&wrapper_read_fd, &threadArgs->wrapper_write_fd);
errno_assert (rc != -1);
threadArgs->norm_descriptor = NormGetDescriptor (norm_instance);
threadArgs->norm_instance_handle = norm_instance;
norm_descriptor_handle = add_fd (wrapper_read_fd);