Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of DnsQuery by
Diff: DnsQuery.cpp
- Revision:
- 16:a1bd52472dff
- Parent:
- 15:e3a13efb2675
- Child:
- 17:18a6b52be896
--- a/DnsQuery.cpp Tue Apr 05 13:22:27 2016 -0500
+++ b/DnsQuery.cpp Tue Apr 05 15:29:49 2016 -0500
@@ -196,11 +196,9 @@
for (unsigned i = 0; i < DNS_COUNT; i++) {
int32_t err = query(&sock, SocketAddress(DNS_IPS[0], 53), host, ip);
- sock.close();
return err;
}
- sock.close();
return NSAPI_ERROR_DNS_FAILURE;
}
