mirror of
https://github.com/hathach/tinyusb.git
synced 2026-08-18 11:02:16 +00:00
fix sizeof(nth16_t) typo
Signed-off-by: HiFiPhile <admin@hifiphile.com>
This commit is contained in:
@ -621,7 +621,7 @@ static bool recv_validate_datagram(const recv_ntb_t *ntb, uint32_t len) {
|
||||
TU_LOG_DRV("(EE) ill block length2: %d > %d\n", nth16->wBlockLength, CFG_TUD_NCM_OUT_NTB_MAX_SIZE);
|
||||
return false;
|
||||
}
|
||||
if (nth16->wNdpIndex < sizeof(nth16) || nth16->wNdpIndex > len - (sizeof(ndp16_t) + 2 * sizeof(ndp16_datagram_t))) {
|
||||
if (nth16->wNdpIndex < sizeof(nth16_t) || nth16->wNdpIndex > len - (sizeof(ndp16_t) + 2 * sizeof(ndp16_datagram_t))) {
|
||||
TU_LOG_DRV("(EE) ill position of first ndp: %d (%lu)\n", nth16->wNdpIndex, len);
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user