projects
/
oweals
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6556519
)
Fix double free in cookie generation.
author
Kurt Roeckx
<kurt@roeckx.be>
Sun, 5 Mar 2017 20:00:11 +0000
(21:00 +0100)
committer
Kurt Roeckx
<kurt@roeckx.be>
Mon, 6 Mar 2017 17:33:56 +0000
(18:33 +0100)
Reviewed-by: Rich Salz <rsalz@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
GH: #2850
ssl/statem/extensions_clnt.c
patch
|
blob
|
history
diff --git
a/ssl/statem/extensions_clnt.c
b/ssl/statem/extensions_clnt.c
index 23dc8d3363b719f653fb3caf0509c5cd0a5b7a9a..8860462a1f3578468a80990feaa229bb3562f37c 100644
(file)
--- a/
ssl/statem/extensions_clnt.c
+++ b/
ssl/statem/extensions_clnt.c
@@
-658,6
+658,7
@@
int tls_construct_ctos_cookie(SSL *s, WPACKET *pkt, unsigned int context,
ret = 1;
end:
OPENSSL_free(s->ext.tls13_cookie);
+ s->ext.tls13_cookie = NULL;
s->ext.tls13_cookie_len = 0;
return ret;