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:
parent
50acc11f07
commit
b2ec0c350a
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user