aboutsummaryrefslogtreecommitdiffstats
path: root/hostapd/Android.mk
diff options
context:
space:
mode:
authorJouni Malinen <jouni@qca.qualcomm.com>2015-06-17 13:30:34 (GMT)
committerJouni Malinen <j@w1.fi>2015-06-17 13:30:34 (GMT)
commitb4c0f584527d5bfb9fb313405ad58369336ab94c (patch)
treeb82fc95f634e55fb998ceef5a296679a2c5700ae /hostapd/Android.mk
parent14fd03312cf1b448f17e810fbc6705251a453aec (diff)
downloadhostap-b4c0f584527d5bfb9fb313405ad58369336ab94c.zip
hostap-b4c0f584527d5bfb9fb313405ad58369336ab94c.tar.gz
hostap-b4c0f584527d5bfb9fb313405ad58369336ab94c.tar.bz2
Clear allocated debug message buffers explicitly
When hostapd or wpa_supplicant is run in debug more with key material prints allowed (-K on the command line), it is possible for passwords and keying material to show up in debug prints. Since some of the debug cases end up allocating a temporary buffer from the heap for processing purposes, a copy of such password may remain in heap. Clear these temporary buffers explicitly to avoid causing issues for hwsim test cases that verify contents of memory against unexpected keys. Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
Diffstat (limited to 'hostapd/Android.mk')
-rw-r--r--hostapd/Android.mk1
1 files changed, 1 insertions, 0 deletions
diff --git a/hostapd/Android.mk b/hostapd/Android.mk
index 78a1506..9dde32f 100644
--- a/hostapd/Android.mk
+++ b/hostapd/Android.mk
@@ -893,6 +893,7 @@ endif
OBJS_c = hostapd_cli.c src/common/wpa_ctrl.c src/utils/os_$(CONFIG_OS).c
OBJS_c += src/utils/eloop.c
+OBJS_c += src/utils/common.c
ifdef CONFIG_WPA_TRACE
OBJS_c += src/utils/trace.c
endif