mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-28 01:28:59 +00:00
28 lines
822 B
Diff
28 lines
822 B
Diff
|
From f52bb5be437ab33d7cd10f0ff1cdf0bb86857cf7 Mon Sep 17 00:00:00 2001
|
||
|
From: Kevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk>
|
||
|
Date: Wed, 16 Jan 2019 09:48:07 +0000
|
||
|
Subject: [PATCH 31/31] fix previous commit
|
||
|
|
||
|
Signed-off-by: Kevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk>
|
||
|
---
|
||
|
src/dhcp-common.c | 2 ++
|
||
|
1 file changed, 2 insertions(+)
|
||
|
|
||
|
--- a/src/dhcp-common.c
|
||
|
+++ b/src/dhcp-common.c
|
||
|
@@ -371,12 +371,14 @@ void dhcp_update_configs(struct dhcp_con
|
||
|
int prot = AF_INET;
|
||
|
|
||
|
for (config = configs; config; config = config->next)
|
||
|
+ {
|
||
|
if (config->flags & CONFIG_ADDR_HOSTS)
|
||
|
config->flags &= ~(CONFIG_ADDR | CONFIG_ADDR_HOSTS);
|
||
|
#ifdef HAVE_DHCP6
|
||
|
if (config->flags & CONFIG_ADDR6_HOSTS)
|
||
|
config->flags &= ~(CONFIG_ADDR6 | CONFIG_ADDR6_HOSTS);
|
||
|
#endif
|
||
|
+ }
|
||
|
|
||
|
#ifdef HAVE_DHCP6
|
||
|
again:
|