projects
/
mech_eap.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e5fc8c8
)
Fix wpa_cli with libreadline and WPA_TRACE to use consistent alloc
author
Jouni Malinen
<jouni.malinen@atheros.com>
Mon, 28 Dec 2009 10:13:52 +0000
(12:13 +0200)
committer
Jouni Malinen
<j@w1.fi>
Mon, 28 Dec 2009 10:13:52 +0000
(12:13 +0200)
Need to use strdup(), not os_strdup() here since the readline/fgets
result needs to use same style for memory allocation to avoid WPA_TRACE
errors.
wpa_supplicant/wpa_cli.c
patch
|
blob
|
history
diff --git
a/wpa_supplicant/wpa_cli.c
b/wpa_supplicant/wpa_cli.c
index
76e2166
..
1933140
100644
(file)
--- a/
wpa_supplicant/wpa_cli.c
+++ b/
wpa_supplicant/wpa_cli.c
@@
-1776,7
+1776,7
@@
static char * wpa_cli_cmd_gen(const char *text, int state)
while ((cmd = wpa_cli_commands[i].cmd)) {
i++;
if (os_strncasecmp(cmd, text, len) == 0)
- return
os_
strdup(cmd);
+ return strdup(cmd);
}
return NULL;