]> granicus.if.org Git - pdns/commitdiff
always set di.notified_serial in getAllDomains
authorKees Monshouwer <mind04@monshouwer.org>
Tue, 3 Feb 2015 22:21:18 +0000 (23:21 +0100)
committermind04 <mind04@monshouwer.org>
Mon, 9 Feb 2015 11:43:19 +0000 (12:43 +0100)
pdns/backends/gsql/gsqlbackend.cc

index 42b9c17817aa9e20c71c116e9597b19ea50eb16f..fc8e2148ee19dc8adde629582032ea35913eb13c 100644 (file)
@@ -1175,9 +1175,7 @@ void GSQLBackend::getAllDomains(vector<DomainInfo> *domains, bool include_disabl
       SOAData sd;
       fillSOAData(row[2], sd);
       di.serial = sd.serial;
-      if (!row[5].empty()) {
-        di.notified_serial = atol(row[5].c_str());
-      }
+      di.notified_serial = atol(row[5].c_str());
       di.last_check = atol(row[6].c_str());
       di.account = row[7];