From: Otto Moerbeek Date: Fri, 29 Apr 2022 07:42:36 +0000 (+0200) Subject: Coverity 1469730 Explicit null dereferenced: use a default sleep time if sr isn't set X-Git-Tag: auth-4.8.0-alpha0~116^2~5 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d537dbfb514293ce822191973365a1ddea222b84;p=thirdparty%2Fpdns.git Coverity 1469730 Explicit null dereferenced: use a default sleep time if sr isn't set --- diff --git a/pdns/ixplore.cc b/pdns/ixplore.cc index e72ce55df2..0890aa3d25 100644 --- a/pdns/ixplore.cc +++ b/pdns/ixplore.cc @@ -179,8 +179,9 @@ int main(int argc, char** argv) { shared_ptr sr; uint32_t serial = getSerialFromMaster(master, zone, sr, tt); if(ourSerial == serial) { - cout<<"still up to date, their serial is "<d_st.refresh<<" seconds"<d_st.refresh); + time_t sleepTime = sr ? sr->d_st.refresh : 60; + cout<<"still up to date, their serial is "<