DnsQuery for NetworkSocketAPI
Fork of DnsQuery by
Diff: DnsQuery.cpp
- Revision:
- 17:18a6b52be896
- Parent:
- 16:a1bd52472dff
- Child:
- 18:2cb1fffed50c
--- a/DnsQuery.cpp Tue Apr 05 15:29:49 2016 -0500 +++ b/DnsQuery.cpp Tue Apr 05 23:39:38 2016 +0000 @@ -175,7 +175,7 @@ delete packet; return NSAPI_ERROR_DNS_FAILURE; } - + // cleanup and return delete packet; return 0; @@ -195,8 +195,7 @@ UDPSocket sock(iface); for (unsigned i = 0; i < DNS_COUNT; i++) { - int32_t err = query(&sock, SocketAddress(DNS_IPS[0], 53), host, ip); - return err; + return query(&sock, SocketAddress(DNS_IPS[0], 53), host, ip); } return NSAPI_ERROR_DNS_FAILURE;