]> git.ipfire.org Git - thirdparty/hostap.git/commit
edit: Fix libreadline history clearing with WPA_TRACE
authorJouni Malinen <j@w1.fi>
Tue, 14 May 2013 13:46:38 +0000 (16:46 +0300)
committerJouni Malinen <j@w1.fi>
Tue, 14 May 2013 13:46:38 +0000 (16:46 +0300)
commit0af2db74787394465edb9ae011e52c2bce33d1c0
treea7efef7e749c221ed77886fe0d51cf0486665881
parent455299fb40d79bcbeaedcfbc04d00ac8330bbbdd
edit: Fix libreadline history clearing with WPA_TRACE

The HIST_ENTRY and its variables are allocated within libreadline, so
they won't have the WPA_TRACE special header and cannot be freed with
os_free(). Use free() to avoid issues during wpa_cli termination if any
of the new commands added to the history are to be removed (e.g.,
set_network could include a password).

Signed-hostap: Jouni Malinen <j@w1.fi>
src/utils/edit_readline.c