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:
e770c49
)
test-https: Fix memory leaks in TLS processing
author
Jouni Malinen
<j@w1.fi>
Sun, 27 Nov 2011 16:33:11 +0000
(18:33 +0200)
committer
Jouni Malinen
<j@w1.fi>
Sun, 27 Nov 2011 16:33:11 +0000
(18:33 +0200)
Signed-hostap: Jouni Malinen <j@w1.fi>
tests/test-https.c
patch
|
blob
|
history
diff --git
a/tests/test-https.c
b/tests/test-https.c
index
27e692e
..
96e894d
100644
(file)
--- a/
tests/test-https.c
+++ b/
tests/test-https.c
@@
-131,6
+131,8
@@
static int https_client(int s, const char *path)
if (in == NULL)
goto done;
}
+ wpabuf_free(out);
+ out = NULL;
wpa_printf(MSG_INFO, "TLS connection established");
if (appl)
@@
-154,6
+156,8
@@
static int https_client(int s, const char *path)
wpa_printf(MSG_ERROR, "send: %s", strerror(errno));
goto done;
}
+ wpabuf_free(out);
+ out = NULL;
wpa_printf(MSG_INFO, "Reading HTTP response");
for (;;) {