From: Peter van Dijk Date: Mon, 27 May 2019 20:33:29 +0000 (+0200) Subject: auth gsql getAllDomains: ignore stou errors X-Git-Tag: dnsdist-1.4.0-beta1~20^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8e4ff1e96dd1a150460b3bff3f32f993432b81ba;p=pdns auth gsql getAllDomains: ignore stou errors Fixes #4475 Fixes #4450 --- diff --git a/pdns/backends/gsql/gsqlbackend.cc b/pdns/backends/gsql/gsqlbackend.cc index cbc9caef5..7dc46b588 100644 --- a/pdns/backends/gsql/gsqlbackend.cc +++ b/pdns/backends/gsql/gsqlbackend.cc @@ -1325,8 +1325,12 @@ void GSQLBackend::getAllDomains(vector *domains, bool include_disabl SOAData sd; fillSOAData(row[2], sd); di.serial = sd.serial; - di.notified_serial = pdns_stou(row[5]); - di.last_check = pdns_stou(row[6]); + try { + di.notified_serial = pdns_stou(row[5]); + di.last_check = pdns_stou(row[6]); + } catch(...) { + continue; + } di.account = row[7]; di.backend = this;