*** empty log message ***
authorBen Laurie <ben@openssl.org>
Sat, 13 Dec 2008 17:45:27 +0000 (17:45 +0000)
committerBen Laurie <ben@openssl.org>
Sat, 13 Dec 2008 17:45:27 +0000 (17:45 +0000)
ssl/t1_lib.c

index e6ba33d..9ad7c29 100644 (file)
@@ -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);