From: Pieter Lexis Date: Wed, 14 Feb 2018 10:00:54 +0000 (+0100) Subject: ixfrdist: Prevent a nullptr exception X-Git-Tag: dnsdist-1.3.0~104^2~2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0d19f1ca9621cfd9d6d774d649d782f04d76f35d;p=thirdparty%2Fpdns.git ixfrdist: Prevent a nullptr exception --- diff --git a/pdns/ixfrdist.cc b/pdns/ixfrdist.cc index a0465633e7..d8d4150dec 100644 --- a/pdns/ixfrdist.cc +++ b/pdns/ixfrdist.cc @@ -260,16 +260,16 @@ void updateThread() { if (g_verbose) { cerr<<"[INFO] Wrote zonedata for "<d_st.serial<<" to "< guard(g_soas_mutex); + g_soas[domain] = soa; + } + } catch (ResolverException &e) { cerr<<"[WARNING] Could not retrieve AXFR for '"< guard(g_soas_mutex); - g_soas[domain] = soa; - } - // Now clean up the directory cleanUpDomain(domain); } /* for (const auto &domain : domains) */