From: Aki Tuomi Date: Mon, 26 Oct 2015 15:50:47 +0000 (+0200) Subject: Use DNSName for label X-Git-Tag: dnsdist-1.0.0-alpha1~230^2~29^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=725e814ace2db533a100f05a0021343aef084d23;p=pdns Use DNSName for label --- diff --git a/pdns/gss_context.cc b/pdns/gss_context.cc index 10d103ed1..8ea3747c8 100644 --- a/pdns/gss_context.cc +++ b/pdns/gss_context.cc @@ -166,7 +166,7 @@ void GssContext::initialize() { GssContext::GssContext() { initialize(); - generateLabel("pdns.tsig"); + generateLabel("pdns.tsig."); } GssContext::GssContext(const DNSName& label) { @@ -177,7 +177,7 @@ GssContext::GssContext(const DNSName& label) { void GssContext::generateLabel(const std::string& suffix) { std::ostringstream oss; oss << std::hex << time((time_t*)NULL) << "." << suffix; - setLabel(oss.str()); + setLabel(DNSName(oss.str())); } void GssContext::setLabel(const DNSName& label) {