mirror of
https://github.com/apache/nuttx.git
synced 2026-09-09 02:16:35 +00:00
inet_bind: errno alignment to Linux
cunittest error case: addr length is short. Signed-off-by: zhanghongyu <zhanghongyu@xiaomi.com>
This commit is contained in:
parent
d6b441f141
commit
6b955b0ef0
1 changed files with 1 additions and 1 deletions
|
|
@ -407,7 +407,7 @@ static int inet_bind(FAR struct socket *psock,
|
|||
if (addrlen < minlen)
|
||||
{
|
||||
nerr("ERROR: Invalid address length: %d < %d\n", addrlen, minlen);
|
||||
return -EBADF;
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
/* Perform the binding depending on the protocol type */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue