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:
19d300d
)
*** empty log message ***
author
Ben Laurie
<ben@openssl.org>
Sat, 13 Dec 2008 17:45:27 +0000
(17:45 +0000)
committer
Ben Laurie
<ben@openssl.org>
Sat, 13 Dec 2008 17:45:27 +0000
(17:45 +0000)
ssl/t1_lib.c
patch
|
blob
|
history
diff --git
a/ssl/t1_lib.c
b/ssl/t1_lib.c
index e6ba33d85b1b847a6ba90670e8865b0fadc3c7e5..9ad7c29a7d15d278c61e9df46300a7d692cd5995 100644
(file)
--- a/
ssl/t1_lib.c
+++ b/
ssl/t1_lib.c
@@
-1532,6
+1532,9
@@
static int tls_decrypt_ticket(SSL *s, const unsigned char *etick, int eticklen,
* integrity checks on ticket.
*/
mlen = HMAC_size(&hctx);
+ if (mlen <= 0)
+ return -1;
+
eticklen -= mlen;
/* Check HMAC of encrypted ticket */
HMAC_Update(&hctx, etick, eticklen);