mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-09-05 08:28:11 +00:00
Merged in linkgo/apps (pull request #1)
netutils: fix a typo while validating addrlen
This commit is contained in:
commit
6390eb55a0
1 changed files with 1 additions and 1 deletions
|
|
@ -87,7 +87,7 @@ int netlib_get_ipv4dnsaddr(FAR struct in_addr *inaddr)
|
|||
/* Sanity check */
|
||||
|
||||
DEBUGASSERT(addr.sin_family == AF_INET &&
|
||||
addrlen == sizeof(sizeof(struct sockaddr_in)));
|
||||
addrlen == sizeof(struct sockaddr_in));
|
||||
memcpy(inaddr, &addr.sin_addr, sizeof(struct in_addr));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue