3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2025-01-06 13:42:37 +01:00

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

View File

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