diff options
| author | HiFiPhile <[email protected]> | 2026-07-05 12:45:02 +0200 |
|---|---|---|
| committer | HiFiPhile <[email protected]> | 2026-07-05 12:45:12 +0200 |
| commit | 6d697c629e1ec90df1e7ec0ac5035b65186b62d7 (patch) | |
| tree | 276666d35c2f0683dde22b725511f9311f3d39b9 | |
| parent | 6563ef3b2775317008962153abb20fbe727f41f2 (diff) | |
fix sizeof(nth16_t) typo
Signed-off-by: HiFiPhile <[email protected]>
| -rw-r--r-- | src/class/net/ncm_device.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/class/net/ncm_device.c b/src/class/net/ncm_device.c index df17c217a..5624767dd 100644 --- a/src/class/net/ncm_device.c +++ b/src/class/net/ncm_device.c @@ -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; } |
