From 97f1236b53a05d6fb5a80033d0dbe3d8bab76318 Mon Sep 17 00:00:00 2001 From: Kees Monshouwer Date: Tue, 3 Feb 2015 23:21:18 +0100 Subject: [PATCH] always set di.notified_serial in getAllDomains --- pdns/backends/gsql/gsqlbackend.cc | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/pdns/backends/gsql/gsqlbackend.cc b/pdns/backends/gsql/gsqlbackend.cc index 42b9c1781..fc8e2148e 100644 --- a/pdns/backends/gsql/gsqlbackend.cc +++ b/pdns/backends/gsql/gsqlbackend.cc @@ -1175,9 +1175,7 @@ void GSQLBackend::getAllDomains(vector *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]; -- 2.40.0