From: Armin Novak Date: Thu, 7 Feb 2019 13:37:02 +0000 (+0100) Subject: Fixed sign-compare warnings X-Git-Tag: 2.0.0~495^2~37 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4c2028e285bfee0a096ee9796f9de7dfcb104adb;p=platform%2Fupstream%2Ffreerdp.git Fixed sign-compare warnings --- diff --git a/winpr/libwinpr/winsock/winsock.c b/winpr/libwinpr/winsock/winsock.c index 3058230..1c612d0 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;