Fix compiler warning.

This commit is contained in:
Matthias Andree authored and Simon Kelley committed 2017-05-21 22:41:16 +01:00
1 parent f77700aa27
commit 9828ab115e
1 file changed
+1 -1
+1 -1
View File
@@ -383,7 +383,7 @@ size_t dhcp_reply(struct dhcp_context *context, char *iface_name, int int_index,
{
len = option_uint(opt, offset + 4 , 1);
/* Need to take care that bad data can't run us off the end of the packet */
if ((offset + len + 5 <= (option_len(opt))) &&
if ((offset + len + 5 <= (unsigned)(option_len(opt))) &&
(option_uint(opt, offset, 4) == (unsigned int)o->u.encap))
for (o2 = offset + 5; o2 < offset + len + 5; o2 += elen + 1)
{