]> git.ipfire.org Git - thirdparty/hostap.git/commit
Fix segmentation fault for NULL confname in SAVE_CONFIG
authorZhaoyang Liu <zhaoyang@codeaurora.org>
Thu, 5 Mar 2020 03:25:00 +0000 (11:25 +0800)
committerJouni Malinen <j@w1.fi>
Fri, 6 Mar 2020 09:21:58 +0000 (11:21 +0200)
commit87775e32f684ece761d7c927ffeae1ab7295ce89
treed663424345b84bff8603c3b884774237cee9e008
parent81621eab7cd09da023ee745bffafb1ee4170777e
Fix segmentation fault for NULL confname in SAVE_CONFIG

When wpa_supplicant interface is added without a configuration file, the
SAVE_CONFIG command causes a segmentation fault due to referencing a
NULL pointer if the update_config parameter is first explicitly enabled.

Fix the issue by checking the confname for NULL before saving
configuration.

Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
wpa_supplicant/config_file.c