From: Roy Marples Date: Sat, 19 Apr 2008 17:32:43 +0000 (+0000) Subject: Fix a signed issue. X-Git-Tag: v4.0.2~469 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4d9fa3dba69af27ca64cc0cd1b482c83270f0a7f;p=thirdparty%2Fdhcpcd.git Fix a signed issue. --- diff --git a/dhcp.c b/dhcp.c index 0ad1e41d..c574c87c 100644 --- a/dhcp.c +++ b/dhcp.c @@ -373,7 +373,7 @@ decode_rfc3397(char *out, ssize_t len, const uint8_t *p) /* straightforward name segment, add with '.' */ count += l + 1; if (out) { - if (l + 1 > len) { + if ((ssize_t)l + 1 > len) { errno = ENOBUFS; return -1; }