]> git.ipfire.org Git - thirdparty/hostap.git/commit
Fix wpa_psk_file parser error case handling
authorJouni Malinen <jouni@codeaurora.org>
Mon, 18 Feb 2019 16:24:52 +0000 (18:24 +0200)
committerJouni Malinen <j@w1.fi>
Mon, 18 Feb 2019 16:41:32 +0000 (18:41 +0200)
commit2fae58fdc14219f1b86ed8bcea04f97ce6c943ca
tree36f857492585a09c4b81d0a0d17ba37597f2addf
parent5a3a1319931a87ba8bcc652b09aeeb18b8aee6ed
Fix wpa_psk_file parser error case handling

str_token() can return NULL for the name if the remaining token contains
only the delimiter. Fix this to avoid NULL pointer dereference with a
corner case of an invalid value used in the configuration.

Fixes: ec5c39a5574d ("AP: Allow identifying which passphrase station used with wpa_psk_file")
Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
src/ap/ap_config.c