From 0040a79a4094b39b39939b48a14984d29022ed35 Mon Sep 17 00:00:00 2001 From: "Roger A. Light" Date: Thu, 1 Aug 2019 20:46:23 +0100 Subject: [PATCH] Windows fix --- lib/net_mosq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/net_mosq.c b/lib/net_mosq.c index ea04d1ab..9fd75856 100644 --- a/lib/net_mosq.c +++ b/lib/net_mosq.c @@ -961,7 +961,7 @@ int net__socket_nonblock(mosq_sock_t *sock) unsigned long opt = 1; if(ioctlsocket(*sock, FIONBIO, &opt)){ COMPAT_CLOSE(*sock); - mosq->sock = INVALID_SOCKET; + *sock = INVALID_SOCKET; return MOSQ_ERR_ERRNO; } #endif