From: Julien Cassette Date: Tue, 21 Nov 2023 08:43:29 +0000 (+0100) Subject: unbound: fix `create_host_record_from_host` error when `dns` is not set X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=c9c59f553e0bf16d9de897c072059cdc3136e438;p=feed%2Fpackages.git unbound: fix `create_host_record_from_host` error when `dns` is not set The function `create_host_record_from_host` fails if the `dns` option is not set in the host entry. This sets a default to the `dns` variable in order to fix this error. Fixes: #22691 Signed-off-by: Julien Cassette (cherry picked from commit 8d60419251b2c94f87425f41ce49214771d2bf6a) --- diff --git a/net/unbound/Makefile b/net/unbound/Makefile index a2bf99535c..3a7a27cbf7 100644 --- a/net/unbound/Makefile +++ b/net/unbound/Makefile @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=unbound PKG_VERSION:=1.19.0 -PKG_RELEASE:=1 +PKG_RELEASE:=2 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=https://nlnetlabs.nl/downloads/unbound diff --git a/net/unbound/files/dnsmasq.sh b/net/unbound/files/dnsmasq.sh index b507535f30..28f3c86dcf 100644 --- a/net/unbound/files/dnsmasq.sh +++ b/net/unbound/files/dnsmasq.sh @@ -107,7 +107,7 @@ create_host_record_from_host() { local dns ip name # basefiles dhcp "host" clause which means host A and PTR records - config_get dns "$cfg" dns + config_get dns "$cfg" dns 0 config_get ip "$cfg" ip config_get name "$cfg" name