mirror of
https://github.com/apache/nuttx.git
synced 2026-06-07 01:05:54 +08:00
inet/ipv4_setsockopt.c:fix libuv udp option error
Signed-off-by: wangchen <wangchen41@xiaomi.com>
This commit is contained in:
@@ -195,7 +195,7 @@ int ipv4_setsockopt(FAR struct socket *psock, int option,
|
||||
ttl = (value_len >= sizeof(int)) ?
|
||||
*(FAR int *)value : (int)*(FAR unsigned char *)value;
|
||||
|
||||
if (ttl <= 0 || ttl > 255)
|
||||
if (ttl < 0 || ttl > 255)
|
||||
{
|
||||
ret = -EINVAL;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user