]> git.ipfire.org Git - thirdparty/hostap.git/commit
Fix segfault in case of an invalid configuration
authorKrishna <chaitanya.mgit@gmail.com>
Sun, 15 Jan 2023 19:58:54 +0000 (01:28 +0530)
committerJouni Malinen <j@w1.fi>
Wed, 1 Feb 2023 16:24:13 +0000 (18:24 +0200)
commitd31c2b43aab608e2fd7f70dbbf8c34fbd336ad23
treec305fe776dfe09fd08f6c0524400781e2ee21a34
parent825a545279b31161356d7c7edd47c86f93368a62
Fix segfault in case of an invalid configuration

The RO variable is being assigned before the SSID is NULL checked, so,
any invalid configuration leads to a segmentation fault.

Fixes: d8d2b3a338a1 ("Implement read-only mode for SSIDs from the additional config (-I)")
Signed-off-by: Chaitanya Tata <chaitanya.tk17@gmail.com>
wpa_supplicant/config_file.c