wpa_cli: Fix NULL dereference on printf string argument
authorEytan Lifshitz <eytan.lifshitz@intel.com>
Mon, 19 Jan 2015 04:57:30 +0000 (23:57 -0500)
committerJouni Malinen <j@w1.fi>
Tue, 20 Jan 2015 00:08:58 +0000 (02:08 +0200)
commit30f459c098ccb3179abc4cfcc54619ccd12fefa6
treec72af7aef04f438fc70e050578963aba24365020
parent414f23d8b930095c96b752cc920c4a69bd35d5a3
wpa_cli: Fix NULL dereference on printf string argument

In wpa_cli_cmd_interface(), try_connection(), and main(), ctrl_ifname
may be NULL and could be dereferenced depending on the printf()
implementation.

Signed-off-by: Eytan Lifshitz <eytan.lifshitz@intel.com>
wpa_supplicant/wpa_cli.c