From: Kees Monshouwer Date: Wed, 31 Mar 2021 15:06:09 +0000 (+0200) Subject: pdns: add comment in extractRecord() X-Git-Tag: dnsdist-1.6.0-rc1~36^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a7a67c855128576101a724eef8d6da8cc232becf;p=thirdparty%2Fpdns.git pdns: add comment in extractRecord() Co-authored-by: Peter van Dijk --- diff --git a/pdns/backends/gsql/gsqlbackend.cc b/pdns/backends/gsql/gsqlbackend.cc index e0724d1bd4..5f55bd48a6 100644 --- a/pdns/backends/gsql/gsqlbackend.cc +++ b/pdns/backends/gsql/gsqlbackend.cc @@ -1900,7 +1900,7 @@ void GSQLBackend::extractRecord(SSqlStatement::row_t& row, DNSResourceRecord& r) r.domain_id=pdns_stou(row[4]); - if (row.size() > 8) { + if (row.size() > 8) { // if column 8 exists, it holds an ordername if (!row.at(8).empty()) { r.ordername=DNSName(boost::replace_all_copy(row.at(8), " ", ".")).labelReverse(); }