Blame SOURCES/dnsmasq-2.79-rh1746411.patch

85f98a
From: Simon Kelley <simon@thekelleys.org.uk>
85f98a
Date: Wed, 14 Aug 2019 20:52:50 +0000 (+0100)
85f98a
Subject: Fix breakage of dhcp_lease_time utility.
85f98a
X-Git-Url: http://thekelleys.org.uk/gitweb/?p=dnsmasq.git;a=commitdiff_plain;h=225accd235a09413ca253e710d7d691a3475c523
85f98a
85f98a
Fix breakage of dhcp_lease_time utility.
85f98a
---
85f98a
85f98a
diff --git a/contrib/lease-tools/dhcp_lease_time.c b/contrib/lease-tools/dhcp_lease_time.c
85f98a
index 697d627..91edbfa 100644
85f98a
--- a/contrib/lease-tools/dhcp_lease_time.c
85f98a
+++ b/contrib/lease-tools/dhcp_lease_time.c
85f98a
@@ -83,7 +83,7 @@ static unsigned char *option_find1(unsigned char *p, unsigned char *end, int opt
85f98a
           if (p >= end - 2)
85f98a
             return NULL; /* malformed packet */
85f98a
           opt_len = option_len(p);
85f98a
-          if (end - p >= (2 + opt_len))
85f98a
+          if (end - p < (2 + opt_len))
85f98a
             return NULL; /* malformed packet */
85f98a
           if (*p == opt && opt_len >= minsize)
85f98a
             return p;
85f98a