Blame SOURCES/dnsmasq-2.79-rh1746411.patch

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