miracast: Check return code before using returned buffer

In cmd_start_wfd_connection() and cmd_connect_go_start_wfd(), check
wpa_command_resp() result before using the returned buffer which could
be uninitialized in case of errors.

Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
1 file changed