aboutsummaryrefslogtreecommitdiff
path: root/src/common/dns_utils.cpp
diff options
context:
space:
mode:
authorThomas Winget <tewinget@gmail.com>2014-09-24 23:19:14 -0400
committerThomas Winget <tewinget@gmail.com>2014-09-24 23:45:01 -0400
commitfab95aef64e2e5ba209ca2f27763a8db489d4294 (patch)
treec511ed7ecb8b3bdd2da26e55801d20f6326f656a /src/common/dns_utils.cpp
parentRemoved ldns dependency (diff)
downloadmonero-fab95aef64e2e5ba209ca2f27763a8db489d4294.tar.xz
Remove LDNS dep and fix a bug in libunbound const correctness fix
Diffstat (limited to 'src/common/dns_utils.cpp')
-rw-r--r--src/common/dns_utils.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/common/dns_utils.cpp b/src/common/dns_utils.cpp
index 4b43c7492..346761e74 100644
--- a/src/common/dns_utils.cpp
+++ b/src/common/dns_utils.cpp
@@ -125,7 +125,7 @@ std::vector<std::string> DNSResolver::get_ipv4(const std::string& url)
strncpy(urlC, url.c_str(), 999);
urlC[999] = '\0';
- if (!check_address_syntax(url))
+ if (!check_address_syntax(urlC))
{
return addresses;
}
@@ -156,7 +156,7 @@ std::vector<std::string> DNSResolver::get_ipv6(const std::string& url)
strncpy(urlC, url.c_str(), 999);
urlC[999] = '\0';
- if (!check_address_syntax(url))
+ if (!check_address_syntax(urlC))
{
return addresses;
}
@@ -186,7 +186,7 @@ std::vector<std::string> DNSResolver::get_txt_record(const std::string& url)
strncpy(urlC, url.c_str(), 999);
urlC[999] = '\0';
- if (!check_address_syntax(url))
+ if (!check_address_syntax(urlC))
{
return records;
}