]> git.ipfire.org Git - thirdparty/hostap.git/commit
wpa_cli: Fix PING in interactive mode with ifname_prefix
authorJouni Malinen <jouni@qca.qualcomm.com>
Fri, 26 Sep 2014 12:23:00 +0000 (15:23 +0300)
committerJouni Malinen <j@w1.fi>
Fri, 26 Sep 2014 12:45:53 +0000 (15:45 +0300)
commitfa0e91767d5ce18eafc7efe00a7c4dabaffba118
treec50db6f1aeadcc7cfd940297c5fc5206d97a3dd1
parentc53a9bf8180819c2e67be51c1e44b5d942cdc6f9
wpa_cli: Fix PING in interactive mode with ifname_prefix

The ifname_prefix string could change during line editing and the
periodic PING command running in the background ended up getting the
latest snapshot of the command line due to the pointer being left to
point to the edit buffer. This resulted in unexpected prefix strings
getting used with the periodic PING command. Fix this by temporarily
clearing the ifname_prefix whenever running such a periodic PING.

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
wpa_supplicant/wpa_cli.c