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:
a925e7d
)
Set sess to NULL after freeing it.
author
Kurt Roeckx
<kurt@roeckx.be>
Sat, 12 May 2018 10:08:14 +0000
(12:08 +0200)
committer
Kurt Roeckx
<kurt@roeckx.be>
Sat, 12 May 2018 10:19:00 +0000
(12:19 +0200)
Found by OSS-fuzz
Bug introduced in commit
61fb59238dad6452a37ec14513fae617a4faef29
Reviewed-by: Matt Caswell <matt@openssl.org>
GH: #6235
ssl/t1_lib.c
patch
|
blob
|
history
diff --git
a/ssl/t1_lib.c
b/ssl/t1_lib.c
index b312a14fabb8ed8ec20223b08917c2621235e07f..c076782842086fb3c3c9fca93f5845b6db7c4def 100644
(file)
--- a/
ssl/t1_lib.c
+++ b/
ssl/t1_lib.c
@@
-1384,6
+1384,7
@@
SSL_TICKET_STATUS tls_decrypt_ticket(SSL *s, const unsigned char *etick,
/* Some additional consistency checks */
if (slen != 0) {
SSL_SESSION_free(sess);
+ sess = NULL;
ret = SSL_TICKET_NO_DECRYPT;
goto end;
}