ttls: fix check on avp start

This commit is contained in:
Tim Kourt 2018-09-25 12:43:22 -07:00 committed by Denis Kenzior
parent 50acc11f07
commit b2ec0c350a
1 changed files with 1 additions and 1 deletions

View File

@ -102,7 +102,7 @@ static bool avp_builder_start_avp(struct avp_builder *builder,
{
uint8_t *p;
if (!builder->current_len && builder->offset)
if (builder->current_len)
return false;
if (builder->offset + TTLS_AVP_HEADER_LEN + (vendor_id ? 4 : 0)