aboutsummaryrefslogtreecommitdiffstats
path: root/hostapd/Makefile
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/Makefile
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/Makefile')
-rw-r--r--hostapd/Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/hostapd/Makefile b/hostapd/Makefile
index 3c7bd6f..d4fd36e 100644
--- a/hostapd/Makefile
+++ b/hostapd/Makefile
@@ -108,6 +108,7 @@ LIBS_n += -lrt
endif
OBJS += ../src/utils/common.o
+OBJS_c += ../src/utils/common.o
OBJS += ../src/utils/wpa_debug.o
OBJS_c += ../src/utils/wpa_debug.o
OBJS += ../src/utils/wpabuf.o