Files
nuttx/net/tcp
Zhe Weng 1aceb1d872 net/tcp: Fix clear condition in ofoseg input
We have a case that an http server gives out-of-ordered ACKs, and NuttX client makes `ofoseg`s with length 0, trying to rebuild / put them into `ofosegs` array, which is not intended (no available data and should be skipped). This breaks later logic and finally crashed in `tcp_ofoseg_bufsize` (`ofosegs[i].data` is `NULL`, which should never happen in normal logic).

Note:
- `iob_trimhead` won't return `NULL` when it's applying on normal IOB.
  - Keep `dev->d_iob == NULL` to avoid `iob_trimhead` changed.
- `iob_free_chain` will do nothing when applied to `NULL`.

Signed-off-by: Zhe Weng <wengzhe@xiaomi.com>
2023-04-22 19:26:22 +08:00
..
2023-04-22 01:42:47 +08:00
2023-02-12 01:25:34 +08:00
2023-04-22 01:42:47 +08:00
2023-02-23 16:40:19 +01:00
2023-02-17 11:17:11 -03:00
2023-04-22 01:42:47 +08:00
2023-04-22 01:42:47 +08:00
2023-04-22 01:42:47 +08:00