diff options
author | Ben Laurie <ben@openssl.org> | 2008-12-13 17:45:27 +0000 |
---|---|---|
committer | Ben Laurie <ben@openssl.org> | 2008-12-13 17:45:27 +0000 |
commit | ecd3370ba06af0ebb0cb851fc07b9f330d32e8a9 (patch) | |
tree | 56bd85a39f23e5c5ffa3b85a176af6e27921a6ae /ssl | |
parent | 19d300d07c95836f908f426af696faa975e8bc4a (diff) | |
download | openssl-new-ecd3370ba06af0ebb0cb851fc07b9f330d32e8a9.tar.gz |
*** empty log message ***
Diffstat (limited to 'ssl')
-rw-r--r-- | ssl/t1_lib.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ssl/t1_lib.c b/ssl/t1_lib.c index e6ba33d85b..9ad7c29a7d 100644 --- 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); |