diff --git a/net/socket/setsockopt.c b/net/socket/setsockopt.c index ab2345f5a3..3825e6fdda 100644 --- a/net/socket/setsockopt.c +++ b/net/socket/setsockopt.c @@ -82,7 +82,7 @@ static int psock_socketlevel_option(FAR struct socket *psock, int option, if (!value) { - return -EINVAL; + return -EFAULT; } /* Process the options always handled locally */