diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2014-11-13 14:07:46 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2014-11-13 14:07:46 -0600 |
commit | 584a0a8d28bb474fa9a8a06a2b8da84295eaebdf (patch) | |
tree | c734c6b2e29600549f6a85d62643a6af6269d096 /apps/netutils/dnsclient | |
parent | 77d8d119e3c74e7ceddad5177e1389c07d7c4b36 (diff) | |
download | nuttx-584a0a8d28bb474fa9a8a06a2b8da84295eaebdf.tar.gz nuttx-584a0a8d28bb474fa9a8a06a2b8da84295eaebdf.tar.bz2 nuttx-584a0a8d28bb474fa9a8a06a2b8da84295eaebdf.zip |
Right now if you make a dns request before the dns address it set you will get an assertion. The state of the IP setting is not something the application should be aware of, it should only be concerned with whether or not the name was resolved. From Brennan Ashton.
Diffstat (limited to 'apps/netutils/dnsclient')
-rw-r--r-- | apps/netutils/dnsclient/dns_socket.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/apps/netutils/dnsclient/dns_socket.c b/apps/netutils/dnsclient/dns_socket.c index a240b4392..9c2895437 100644 --- a/apps/netutils/dnsclient/dns_socket.c +++ b/apps/netutils/dnsclient/dns_socket.c @@ -252,12 +252,6 @@ static int dns_send_query(int sockfd, FAR const char *name, memcpy(query, endquery, 5); -#ifdef CONFIG_NET_IPv6 - DEBUGASSERT(((struct sockaddr *)addr)->sa_family == AF_INET6); -#else - DEBUGASSERT(((struct sockaddr *)addr)->sa_family == AF_INET); -#endif - return sendto(sockfd, buffer, query + 5 - buffer, 0, (struct sockaddr*)addr, ADDRLEN); } |