]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Merge branch 'master' of git.marples.name:/var/git/dhcpcd
authorRoy Marples <roy@marples.name>
Mon, 21 Apr 2008 10:43:08 +0000 (10:43 +0000)
committerRoy Marples <roy@marples.name>
Mon, 21 Apr 2008 10:43:08 +0000 (10:43 +0000)
dhcp.c

diff --git a/dhcp.c b/dhcp.c
index a20368f442155bee54b8f9ae48467023ac56c0a1..8e16a442865e75b8c9e43dad4ebeba90146994ec 100644 (file)
--- 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;
                                        }