Blame SOURCES/dnsmasq-2.76-rh1757247.patch

d7059b
From 95b743d5b0e207ecbe92252757100641b5e13d35 Mon Sep 17 00:00:00 2001
d7059b
From: yiwenchen <yiwenchen@synology.com>
d7059b
Date: Wed, 14 Feb 2018 22:26:54 +0000
d7059b
Subject: [PATCH] Fix boundary for test introduced in
d7059b
 3e3f1029c9ec6c63e430ff51063a6301d4b2262
d7059b
d7059b
This fixes breakage of  DHCPv6 relay.
d7059b
d7059b
(cherry picked from commit 499d8dde2b1a216eab9252ee500cc31b8c2b2974)
d7059b
---
d7059b
 src/rfc3315.c | 4 ++--
d7059b
 1 file changed, 2 insertions(+), 2 deletions(-)
d7059b
d7059b
diff --git a/src/rfc3315.c b/src/rfc3315.c
d7059b
index 1e85c5c..42c7a0e 100644
d7059b
--- a/src/rfc3315.c
d7059b
+++ b/src/rfc3315.c
d7059b
@@ -216,9 +216,9 @@ static int dhcp6_maybe_relay(struct state *state, void *inbuff, size_t sz,
d7059b
   
d7059b
   for (opt = opts; opt; opt = opt6_next(opt, end))
d7059b
     {
d7059b
-      if (opt6_ptr(opt, 0) + opt6_len(opt) >= end) {
d7059b
+      if (opt6_ptr(opt, 0) + opt6_len(opt) > end) 
d7059b
         return 0;
d7059b
-      }
d7059b
+     
d7059b
       int o = new_opt6(opt6_type(opt));
d7059b
       if (opt6_type(opt) == OPTION6_RELAY_MSG)
d7059b
 	{
d7059b
-- 
d7059b
2.21.1
d7059b