From: Remi Gacogne Date: Wed, 17 Jul 2019 08:24:55 +0000 (+0200) Subject: dnsdist: Drop the response if the IDState has been reused under our feet X-Git-Tag: dnsdist-1.4.0-rc1~38^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f2d0c8087c955862cd75e9188a7e0c4c56c13d7e;p=pdns dnsdist: Drop the response if the IDState has been reused under our feet --- diff --git a/pdns/dnsdist.cc b/pdns/dnsdist.cc index 244b3ba54..bb35f6804 100644 --- a/pdns/dnsdist.cc +++ b/pdns/dnsdist.cc @@ -586,6 +586,9 @@ try { } else { /* someone updated the state in the meantime, we can't touch the existing pointer */ du = nullptr; + /* since the state has been updated, we can't safely access it so let's just drop + this response */ + continue; } if(dh->tc && g_truncateTC) {