From: Andrei Pavel Date: Tue, 22 Jun 2021 07:16:32 +0000 (+0300) Subject: [#1653] keactrl: more unbound variable checks X-Git-Tag: Kea-1.9.9~68 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b434eaa07a9e439c4aed5673fc3e81c5703849ca;p=thirdparty%2Fkea.git [#1653] keactrl: more unbound variable checks --- diff --git a/src/bin/keactrl/keactrl.in b/src/bin/keactrl/keactrl.in index 0f86a6eae6..7716f21c12 100644 --- a/src/bin/keactrl/keactrl.in +++ b/src/bin/keactrl/keactrl.in @@ -421,28 +421,28 @@ fi # Get location of the DHCPv4 server binary. # shellcheck disable=SC2154 -if [ -z "${dhcp4_srv}" ]; then +if [ -z "${dhcp4_srv+x}" ]; then log_error "dhcp4_srv parameter not specified" exit 1 fi # Get location of the DHCPv6 server binary. # shellcheck disable=SC2154 -if [ -z "${dhcp6_srv}" ]; then +if [ -z "${dhcp6_srv+x}" ]; then log_error "dhcp6_srv parameter not specified" exit 1 fi # Get location of the DHCP DDNS server binary. # shellcheck disable=SC2154 -if [ -z "${dhcp_ddns}" ]; then +if [ -z "${dhcp_ddns+x}" ]; then log_error "dhcp_ddns parameter not specified" exit 1 fi # Get location of the Control Agent binary. # shellcheck disable=SC2154 -if [ -z "${ctrl_agent_srv}" ]; then +if [ -z "${ctrl_agent_srv+x}" ]; then log_error "ctrl_agent_srv parameter not specified" exit 1 fi