projects
/
mech_eap.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
c660b0c
)
TLS: Fix double-free on error path
author
Jouni Malinen
<j@w1.fi>
Sun, 13 Nov 2011 18:57:32 +0000
(20:57 +0200)
committer
Jouni Malinen
<j@w1.fi>
Sun, 13 Nov 2011 18:57:32 +0000
(20:57 +0200)
Signed-hostap: Jouni Malinen <j@w1.fi>
src/tls/tlsv1_client.c
patch
|
blob
|
history
diff --git
a/src/tls/tlsv1_client.c
b/src/tls/tlsv1_client.c
index
a333fef
..
a94ca5f
100644
(file)
--- a/
src/tls/tlsv1_client.c
+++ b/
src/tls/tlsv1_client.c
@@
-196,7
+196,6
@@
u8 * tlsv1_client_handshake(struct tlsv1_client *conn,
if (used == 0) {
struct wpabuf *partial;
wpa_printf(MSG_DEBUG, "TLSv1: Need more data");
- os_free(in_msg);
partial = wpabuf_alloc_copy(pos, end - pos);
wpabuf_free(conn->partial_input);
conn->partial_input = partial;
@@
-208,6
+207,7
@@
u8 * tlsv1_client_handshake(struct tlsv1_client *conn,
TLS_ALERT_INTERNAL_ERROR);
goto failed;
}
+ os_free(in_msg);
if (need_more_data)
*need_more_data = 1;
return 0;