mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-11-22 06:29:23 +01:00
unit: Fix uninitialized variable
This commit is contained in:
parent
bf82c69f10
commit
60a9638f51
@ -2034,15 +2034,17 @@ static int verify_8021x_tls_resp(uint32_t ifindex, const uint8_t *aa_addr,
|
|||||||
}
|
}
|
||||||
|
|
||||||
header_len = 6;
|
header_len = 6;
|
||||||
|
fragment_len = l_get_be16(ef->data + 2) - header_len;
|
||||||
|
|
||||||
if (ef->data[5] & 0x80) { /* L flag */
|
if (ef->data[5] & 0x80) { /* L flag */
|
||||||
assert(len >= 14);
|
assert(len >= 14);
|
||||||
header_len += 4;
|
header_len += 4;
|
||||||
|
fragment_len -= 4;
|
||||||
assert(ef->data[5] & 0x40); /* M flag */
|
assert(ef->data[5] & 0x40); /* M flag */
|
||||||
assert(l_get_be32(ef->data + 6) > fragment_len);
|
assert(l_get_be32(ef->data + 6) > fragment_len);
|
||||||
}
|
}
|
||||||
s->tx_ack = !!(ef->data[5] & 0x40); /* M flag */
|
s->tx_ack = !!(ef->data[5] & 0x40); /* M flag */
|
||||||
|
|
||||||
fragment_len = l_get_be16(ef->data + 2) - header_len;
|
|
||||||
assert(len == 4 + header_len + fragment_len);
|
assert(len == 4 + header_len + fragment_len);
|
||||||
|
|
||||||
assert(s->pending_req);
|
assert(s->pending_req);
|
||||||
|
Loading…
Reference in New Issue
Block a user