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>
1 file changed