From 4c2028e285bfee0a096ee9796f9de7dfcb104adb Mon Sep 17 00:00:00 2001 From: Armin Novak Date: Thu, 7 Feb 2019 14:37:02 +0100 Subject: [PATCH] Fixed sign-compare warnings --- winpr/libwinpr/winsock/winsock.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/winpr/libwinpr/winsock/winsock.c b/winpr/libwinpr/winsock/winsock.c index 305823064..1c612d0cc 100644 --- a/winpr/libwinpr/winsock/winsock.c +++ b/winpr/libwinpr/winsock/winsock.c @@ -925,7 +925,7 @@ int WSAIoctl(SOCKET s, DWORD dwIoControlCode, LPVOID lpvInBuffer, numInterfaces = 0; ifreq = ifconf.ifc_req; - while ((offset < ifconf.ifc_len) && (numInterfaces < maxNumInterfaces)) + while ((ifconf.ifc_len >= 0) && (offset < (size_t)ifconf.ifc_len) && (numInterfaces < maxNumInterfaces)) { pInterface = &pInterfaces[index]; pAddress = (struct sockaddr_in*) &pInterface->iiAddress;