Skip to content

Commit

Permalink
hostapd: fix config change detection on boolean values
Browse files Browse the repository at this point in the history
Check for null instead of truish value

Signed-off-by: Felix Fietkau <[email protected]>
  • Loading branch information
nbd168 committed Sep 3, 2023
1 parent 3b44e0a commit d653544
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion package/network/services/hostapd/files/common.uc
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit d653544

Please sign in to comment.