hostapd: fix config change detection on boolean values
authorFelix Fietkau <nbd@nbd.name>
Sun, 3 Sep 2023 07:51:08 +0000 (09:51 +0200)
committerFelix Fietkau <nbd@nbd.name>
Sun, 3 Sep 2023 07:51:08 +0000 (09:51 +0200)
Check for null instead of truish value

Signed-off-by: Felix Fietkau <nbd@nbd.name>
package/network/services/hostapd/files/common.uc

index 9ece3b1af2ea1b545a8cf07031770e96d75887be..74c07855c958487cee27956ff8f6191e095781fa 100644 (file)
@@ -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 {