mirror of
https://github.com/apache/nuttx.git
synced 2026-05-09 23:12:17 +08:00
6cba2674fa
Change && to || in the fromlen validation of icmpv6_recvmsg(). The original condition (fromlen == NULL && *fromlen < sizeof(...)) would never be true when fromlen is NULL due to short-circuit evaluation. The correct logic is: reject if fromlen is NULL or the buffer is too small. Signed-off-by: zhanghongyu <zhanghongyu@xiaomi.com>