From: Kees Monshouwer Date: Tue, 23 Jun 2015 19:33:46 +0000 (+0200) Subject: gqlite3 tests pass X-Git-Tag: dnsdist-1.0.0-alpha1~248^2~58^2~21^2~5^2~20 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e2f93bc65baa560381b23feec1a9d95eb8220211;p=thirdparty%2Fpdns.git gqlite3 tests pass --- diff --git a/pdns/dnsname.cc b/pdns/dnsname.cc index cce9797c62..28b281ff90 100644 --- a/pdns/dnsname.cc +++ b/pdns/dnsname.cc @@ -94,8 +94,8 @@ std::string DNSName::toDNSString() const return ""; string ret(d_storage.c_str(), d_storage.length()); ret.append(1,(char)0); - // return toLower(ret); - return ret; + return toLower(ret); // toLower or not toLower, that is the question + // return ret; } size_t DNSName::length() const { diff --git a/pdns/dnssecsigner.cc b/pdns/dnssecsigner.cc index b7eeb352e5..1ca603106b 100644 --- a/pdns/dnssecsigner.cc +++ b/pdns/dnssecsigner.cc @@ -222,8 +222,8 @@ void addRRSigs(DNSSECKeeper& dk, UeberBackend& db, const set& authSet, addSignature(dk, db, signer, signQName, wildcardQName, signQType, signTTL, signPlace, toSign, signedRecords, origTTL); } signedRecords.push_back(*pos); - signQName= pos->qname; - wildcardQName = pos->wildcardname; + signQName= DNSName(toLower(pos->qname.toString())); + wildcardQName = DNSName(toLower(pos->wildcardname.toString())); signQType = pos ->qtype.getCode(); if(pos->signttl) signTTL = pos->signttl;