]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
rec: Fix getEDNSExtendedErrorOptFromString() on CentOS 6 9751/head
authorRemi Gacogne <remi.gacogne@powerdns.com>
Thu, 19 Nov 2020 13:24:01 +0000 (14:24 +0100)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Thu, 19 Nov 2020 13:24:01 +0000 (14:24 +0100)
pdns_string_view falls back to a regular string there, so there
was an ambiguity on which overloaded function to call.

pdns/recursordist/ednsextendederror.cc

index 9903a0770fd0045bf0c3b8fdb0fa5fc85bc395f1..cf611d0016a757369867046a2dc7d6f44d3d25da 100644 (file)
@@ -22,7 +22,7 @@
 #include "ednsextendederror.hh"
 #include "views.hh"
 
-static bool getEDNSExtendedErrorOptFromString(const pdns_string_view option, EDNSExtendedError& eee)
+static bool getEDNSExtendedErrorOptFromStringView(const pdns_string_view& option, EDNSExtendedError& eee)
 {
   if (option.size() < sizeof(uint16_t)) {
     return false;
@@ -38,12 +38,12 @@ static bool getEDNSExtendedErrorOptFromString(const pdns_string_view option, EDN
 
 bool getEDNSExtendedErrorOptFromString(const string& option, EDNSExtendedError& eee)
 {
-  return getEDNSExtendedErrorOptFromString(pdns_string_view(option), eee);
+  return getEDNSExtendedErrorOptFromStringView(pdns_string_view(option), eee);
 }
 
 bool getEDNSExtendedErrorOptFromString(const char* option, unsigned int len, EDNSExtendedError& eee)
 {
-  return getEDNSExtendedErrorOptFromString(pdns_string_view(option, len), eee);
+  return getEDNSExtendedErrorOptFromStringView(pdns_string_view(option, len), eee);
 }
 
 string makeEDNSExtendedErrorOptString(const EDNSExtendedError& eee)