commit | 956bfc3d3600a37092cb9bc59c2e7aec61278b20 | [log] [tgz] |
---|---|---|
author | Mohammad Asaad Akram <asadkrm@codeaurora.org> | Wed Apr 08 16:26:18 2020 +0530 |
committer | Jouni Malinen <jouni@codeaurora.org> | Thu Apr 09 16:56:41 2020 +0300 |
tree | b0f9280a05e442ea32e686cf0111281fa7f93de6 | |
parent | 6d7454f7038910e93466869c704069c3b1d5061a [diff] |
sta_get_parameter: Avoid NULL pointer access on error paths for PMK The goto fail implementation due to pos=NULL while searching for PMK in the PMKSA_GET response could result in accessing pos to search for '\n'. Avoid this by not doing a "goto fail" but rather break the while loop for any improper format in the line corresponding to PMK. Signed-off-by: Jouni Malinen <jouni@codeaurora.org>