summaryrefslogtreecommitdiffstats
path: root/src/shrpx_dns_resolver.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/shrpx_dns_resolver.cc')
-rw-r--r--src/shrpx_dns_resolver.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shrpx_dns_resolver.cc b/src/shrpx_dns_resolver.cc
index 8253942..ceda612 100644
--- a/src/shrpx_dns_resolver.cc
+++ b/src/shrpx_dns_resolver.cc
@@ -178,7 +178,7 @@ int DNSResolver::resolve(const StringRef &name, int family) {
ares_addrinfo_hints hints{};
hints.ai_family = family_;
- ares_getaddrinfo(channel_, name_.c_str(), nullptr, &hints, addrinfo_cb, this);
+ ares_getaddrinfo(channel_, name_.data(), nullptr, &hints, addrinfo_cb, this);
reset_timeout();
return 0;