From: Felix Fietkau Date: Sun, 3 Sep 2023 07:51:08 +0000 (+0200) Subject: hostapd: fix config change detection on boolean values X-Git-Tag: v24.10.0-rc1~4287 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d65354488d2ff9187907c92c7f30e3072441ed83;p=thirdparty%2Fopenwrt.git hostapd: fix config change detection on boolean values Check for null instead of truish value Signed-off-by: Felix Fietkau --- diff --git a/package/network/services/hostapd/files/common.uc b/package/network/services/hostapd/files/common.uc index 9ece3b1af2e..74c07855c95 100644 --- a/package/network/services/hostapd/files/common.uc +++ b/package/network/services/hostapd/files/common.uc @@ -150,7 +150,7 @@ function is_equal(val1, val2) { if (!is_equal(val1[key], val2[key])) return false; for (let key in val2) - if (!val1[key]) + if (val1[key] == null) return false; return true; } else {