]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
inet_ntop4: casted signed/unsigned comparison
authorNikos Mavrogiannopoulos <nmav@gnutls.org>
Sat, 10 Sep 2016 05:49:59 +0000 (07:49 +0200)
committerNikos Mavrogiannopoulos <nmav@gnutls.org>
Sat, 10 Sep 2016 05:49:59 +0000 (07:49 +0200)
lib/system/inet_ntop.c

index 2ed11ba308bdb7d16d84760024b5efded4adb0a7..69920cd772b2071a94974264b5b18182c7313bd4 100644 (file)
@@ -121,7 +121,7 @@ inet_ntop4 (const unsigned char *src, char *dst, unsigned size)
   if (len < 0)
     return NULL;
 
-  if (len > size)
+  if ((unsigned)len > size)
     {
       errno = ENOSPC;
       return NULL;