From e8afb726c9301a1585aee8268a34aec00f2fac5f Mon Sep 17 00:00:00 2001 From: bert hubert Date: Mon, 28 Sep 2015 00:06:35 +0200 Subject: [PATCH] fix up p11 plus binddnssec DNSName adjustments --- modules/bindbackend/binddnssec.cc | 8 ++++---- pdns/pdnssec.cc | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/modules/bindbackend/binddnssec.cc b/modules/bindbackend/binddnssec.cc index 2660439d8..30bc7f8cd 100644 --- a/modules/bindbackend/binddnssec.cc +++ b/modules/bindbackend/binddnssec.cc @@ -369,8 +369,8 @@ bool Bind2Backend::getTSIGKey(const DNSName& name, DNSName* algorithm, string* c content->clear(); while(d_getTSIGKeyQuery_stmt->hasNextRow()) { d_getTSIGKeyQuery_stmt->nextRow(row); - if(row.size() >= 2 && (algorithm->empty() || *algorithm == row[0])) { - *algorithm = row[0]; + if(row.size() >= 2 && (algorithm->empty() || *algorithm == DNSName(row[0]))) { + *algorithm = DNSName(row[0]); *content = row[1]; } } @@ -432,8 +432,8 @@ bool Bind2Backend::getTSIGKeys(std::vector< struct TSIGKey > &keys) while(d_getTSIGKeysQuery_stmt->hasNextRow()) { d_getTSIGKeysQuery_stmt->nextRow(row); struct TSIGKey key; - key.name = row[0]; - key.algorithm = row[1]; + key.name = DNSName(row[0]); + key.algorithm = DNSName(row[1]); key.key = row[2]; keys.push_back(key); } diff --git a/pdns/pdnssec.cc b/pdns/pdnssec.cc index f006cf5e0..c56ac8f50 100644 --- a/pdns/pdnssec.cc +++ b/pdns/pdnssec.cc @@ -2178,7 +2178,7 @@ try return 1; } - string zone = cmds[2]; + DNSName zone(cmds[2]); // verify zone if (!B.getDomainInfo(zone, di)) { @@ -2257,7 +2257,7 @@ try return 1; } DomainInfo di; - string zone = cmds[2]; + DNSName zone(cmds[2]); unsigned int id; int bits = 2048; // verify zone -- 2.40.0