]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Merge pull request #7854 from Habbie/gsql-stou
authorPeter van Dijk <peter.van.dijk@powerdns.com>
Tue, 28 May 2019 13:36:11 +0000 (15:36 +0200)
committerGitHub <noreply@github.com>
Tue, 28 May 2019 13:36:11 +0000 (15:36 +0200)
auth gsql getAllDomains: ignore stou errors

pdns/backends/gsql/gsqlbackend.cc

index cbc9caef51b8c4d3e825360184f3c5c61791cc29..7dc46b588bc5c2841bf7a5e4afe32f528810ea80 100644 (file)
@@ -1325,8 +1325,12 @@ void GSQLBackend::getAllDomains(vector<DomainInfo> *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;