]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Fix a signed issue.
authorRoy Marples <roy@marples.name>
Sat, 19 Apr 2008 17:32:43 +0000 (17:32 +0000)
committerRoy Marples <roy@marples.name>
Sat, 19 Apr 2008 17:32:43 +0000 (17:32 +0000)
dhcp.c

diff --git a/dhcp.c b/dhcp.c
index 0ad1e41dc63f1bc540ecfd11c917f6967ba5488b..c574c87c7ae40c2ab89a3610259b9b3afe03da05 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;
                                        }