From 75131069b6947b543c0ed48d0c195e9f47544439 Mon Sep 17 00:00:00 2001 From: Aki Tuomi Date: Fri, 11 Dec 2015 16:32:16 +0200 Subject: [PATCH] Use proper conversions on bind backend --- modules/bindbackend/binddnssec.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/bindbackend/binddnssec.cc b/modules/bindbackend/binddnssec.cc index 4066e39db..9d15e61e5 100644 --- a/modules/bindbackend/binddnssec.cc +++ b/modules/bindbackend/binddnssec.cc @@ -268,9 +268,9 @@ bool Bind2Backend::getDomainKeys(const DNSName& name, unsigned int kind, std::ve SSqlStatement::row_t row; while(d_getDomainKeysQuery_stmt->hasNextRow()) { d_getDomainKeysQuery_stmt->nextRow(row); - kd.id = atoi(row[0].c_str()); - kd.flags = atoi(row[1].c_str()); - kd.active = atoi(row[2].c_str()); + kd.id = pdns_stou(row[0]); + kd.flags = pdns_stou(row[1]); + kd.active = (row[2] == "1"); kd.content = row[3]; keys.push_back(kd); } -- 2.40.0