diff options
author | Simon Kelley <simon@thekelleys.org.uk> | 2020-03-05 22:13:45 +0000 |
---|---|---|
committer | Simon Kelley <simon@thekelleys.org.uk> | 2020-03-05 22:13:45 +0000 |
commit | fc19399a1f07ac97cfc10acfa033d1a6e757aa00 (patch) | |
tree | c7a05df2504db1e402d3480a4b3c3b34192ac651 | |
parent | 980b14f174208022d56da9d53eae0bc2d59aaa2c (diff) | |
download | dnsmasq-2.81rc2.tar.gz |
Fix compiler warning.v2.81rc2
-rw-r--r-- | src/rfc2131.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rfc2131.c b/src/rfc2131.c index e27cd29..fc54aab 100644 --- a/src/rfc2131.c +++ b/src/rfc2131.c @@ -413,7 +413,7 @@ size_t dhcp_reply(struct dhcp_context *context, char *iface_name, int int_index, for (o2 = offset + 5; o2 < offset + len + 5; o2 += elen + 1) { elen = option_uint(opt, o2, 1); - if ((o2 + elen + 1 <= option_len(opt)) && + if ((o2 + elen + 1 <= (unsigned)option_len(opt)) && (match = match_bytes(o, option_ptr(opt, o2 + 1), elen))) break; } |