Bugtraq mailing list archives

Re: tcpdump workaround against dnsloop exploit.


From: davids () WEBMASTER COM (David Schwartz)
Date: Sat, 6 May 2000 15:12:54 -0700


        This won't work. It stops an A->A->A loop but allows an A->B->A->B loop.
What you want is something more like:

+                               /*
+                                * If we got two time the same data ptr,
+                                * or are being referred forward,
+                                * this means we may loop.
+                                */
+                               if ( cp >= old)
+                                       return NULL;
+                               old = cp;

        DS


Current thread: