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:
362bd35
)
Fix wpa_priv memory leak in wpa_priv_get_scan_results2()
author
Dmitry Shmidt
<dimitrysh@google.com>
Thu, 3 Dec 2009 18:59:27 +0000
(20:59 +0200)
committer
Jouni Malinen
<j@w1.fi>
Thu, 3 Dec 2009 18:59:27 +0000
(20:59 +0200)
I suspect that new scan results format demands more complex free
procedure.
wpa_supplicant/wpa_priv.c
patch
|
blob
|
history
diff --git
a/wpa_supplicant/wpa_priv.c
b/wpa_supplicant/wpa_priv.c
index
975a4ed
..
046f378
100644
(file)
--- a/
wpa_supplicant/wpa_priv.c
+++ b/
wpa_supplicant/wpa_priv.c
@@
-146,12
+146,12
@@
static void wpa_priv_get_scan_results2(struct wpa_priv_interface *iface,
sizeof(*from));
os_free(buf);
-
o
s_free(res);
+
wpa_scan_result
s_free(res);
return;
fail:
os_free(buf);
-
o
s_free(res);
+
wpa_scan_result
s_free(res);
sendto(iface->fd, "", 0, 0, (struct sockaddr *) from, sizeof(*from));
}