From f2d0c8087c955862cd75e9188a7e0c4c56c13d7e Mon Sep 17 00:00:00 2001 From: Remi Gacogne Date: Wed, 17 Jul 2019 10:24:55 +0200 Subject: [PATCH] dnsdist: Drop the response if the IDState has been reused under our feet --- pdns/dnsdist.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pdns/dnsdist.cc b/pdns/dnsdist.cc index 244b3ba543..bb35f68047 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) { -- 2.47.2