aboutsummaryrefslogtreecommitdiff
path: root/src/common/dns_utils.cpp
diff options
context:
space:
mode:
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;
}