]> granicus.if.org Git - pdns/commitdiff
dnsdist: Drop the response if the IDState has been reused under our feet
authorRemi Gacogne <remi.gacogne@powerdns.com>
Wed, 17 Jul 2019 08:24:55 +0000 (10:24 +0200)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Wed, 17 Jul 2019 08:24:55 +0000 (10:24 +0200)
pdns/dnsdist.cc

index 244b3ba54308e8fa2e4d85ce89539ad840ed9918..bb35f6804722d855c9bee0af2b8a5d13b730fe22 100644 (file)
@@ -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) {