setsockopt: Change return errno to EFAULT when value is NULL
behavior alignment to Linux for some testsuite Signed-off-by: zhanghongyu <zhanghongyu@xiaomi.com>
This commit is contained in:
parent
dc577b66e4
commit
ae3e1d8ec5
@ -82,7 +82,7 @@ static int psock_socketlevel_option(FAR struct socket *psock, int option,
|
|||||||
|
|
||||||
if (!value)
|
if (!value)
|
||||||
{
|
{
|
||||||
return -EINVAL;
|
return -EFAULT;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Process the options always handled locally */
|
/* Process the options always handled locally */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user