From: Nikos Mavrogiannopoulos Date: Sat, 10 Sep 2016 05:49:59 +0000 (+0200) Subject: inet_ntop4: casted signed/unsigned comparison X-Git-Tag: gnutls_3_5_5~142 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4bbf6ac5f03325bda806adddd01095115fdb5a0e;p=thirdparty%2Fgnutls.git inet_ntop4: casted signed/unsigned comparison --- diff --git a/lib/system/inet_ntop.c b/lib/system/inet_ntop.c index 2ed11ba308..69920cd772 100644 --- a/lib/system/inet_ntop.c +++ b/lib/system/inet_ntop.c @@ -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;