Fix warning: lenmax isn't used any more.
authorDr. Stephen Henson <steve@openssl.org>
Thu, 24 Jan 2013 14:06:54 +0000 (14:06 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Thu, 24 Jan 2013 14:08:28 +0000 (14:08 +0000)
ssl/t1_lib.c

index 9daf9c706eecff8d693b63a90c78276b0ebacc29..512045f31e8e8bbf29c4b99a6998c528d1d4a020 100644 (file)
@@ -1387,13 +1387,11 @@ unsigned char *ssl_add_clienthello_tlsext(SSL *s, unsigned char *p, unsigned cha
        /* 1 byte for the list (we only support audit proofs) */
        if (s->ctx->tlsext_authz_server_audit_proof_cb != NULL)
                {
-               size_t lenmax;
                 const unsigned short ext_len = 2;
                 const unsigned char list_len = 1;
 
                if (limit < ret + 6)
                        return NULL;
-               lenmax = limit - ret - 6;
 
                s2n(TLSEXT_TYPE_server_authz, ret);
                 /* Extension length: 2 bytes */