mirror of
https://github.com/apache/nuttx-apps.git
synced 2025-10-20 21:41:18 +08:00
netutils: fix a typo while validating addrlen
This commit is contained in:
@@ -87,7 +87,7 @@ int netlib_get_ipv4dnsaddr(FAR struct in_addr *inaddr)
|
|||||||
/* Sanity check */
|
/* Sanity check */
|
||||||
|
|
||||||
DEBUGASSERT(addr.sin_family == AF_INET &&
|
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));
|
memcpy(inaddr, &addr.sin_addr, sizeof(struct in_addr));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user