Fix warning: lenmax isn't used any more.

This commit is contained in:
Dr. Stephen Henson 2013-01-24 14:06:54 +00:00
parent 1db4354b53
commit f8435919a1

View 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) */ /* 1 byte for the list (we only support audit proofs) */
if (s->ctx->tlsext_authz_server_audit_proof_cb != NULL) if (s->ctx->tlsext_authz_server_audit_proof_cb != NULL)
{ {
size_t lenmax;
const unsigned short ext_len = 2; const unsigned short ext_len = 2;
const unsigned char list_len = 1; const unsigned char list_len = 1;
if (limit < ret + 6) if (limit < ret + 6)
return NULL; return NULL;
lenmax = limit - ret - 6;
s2n(TLSEXT_TYPE_server_authz, ret); s2n(TLSEXT_TYPE_server_authz, ret);
/* Extension length: 2 bytes */ /* Extension length: 2 bytes */