netutils: fix a typo while validating addrlen

This commit is contained in:
Librae 2015-07-24 02:24:17 +08:00
parent 3a57f9e2ef
commit 46b257c945

View File

@ -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));
}
}