Skip to content
Commit 4e862044 authored by Jo-Philipp Wich's avatar Jo-Philipp Wich
Browse files

luci-mod-network: fix SAE/WPA check on network join

The method array may be null in case of an open network, also not all
occurrences of `is_sae` and `is_psk` were properly checked.

Resolve the issue by moving the length check to the variable initialization.

Fixes: ba98a2fd

 ("luci-mod-network: fix logic bug in parse enc for network join")
Signed-off-by: default avatarJo-Philipp Wich <jo@mein.io>
parent a7eaf924
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment