]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
fix explicit /32 IP matches - found by Stefan Schmidt, plus document
authorBert Hubert <bert.hubert@netherlabs.nl>
Wed, 18 Jun 2008 21:11:26 +0000 (21:11 +0000)
committerBert Hubert <bert.hubert@netherlabs.nl>
Wed, 18 Jun 2008 21:11:26 +0000 (21:11 +0000)
git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@1205 d19b8d6e-7fed-0310-83ef-9ca221ded41b

pdns/docs/pdns.sgml
pdns/iputils.hh

index b096e4a389a832b83824dc28caa9f5a73f778b91..de3bf5509c4bb38aba695cecdcccf85739833e08 100644 (file)
              in syncres.cc, fixed in c1189.
            </para>
          </listitem>
+         <listitem>
+           <para>
+             Stefan Schmidt discovered that the netmask matching code, used by the new Lua scripts, but also by all other parts of PowerDNS, had problems
+             with explicit '/32' matches. Fixed in c1205.
+           </para>
+         </listitem>
+
        </itemizedlist>
        </para>
       </sect2>
@@ -7983,8 +7990,7 @@ local0.err                        /var/log/pdns.err
                <para>
                  <warning>
                    <para>
-                   In PowerDNS versions 3.0.0 and 3.0.1 this command is slightly buggy and might cause your nameserver to crash if the first
-                   query after wiping the cache is for the domain you just wiped.
+                     As of 3.1.7, this command also wipes the negative query cache for the specified domain.
                    </para>
                  </warning>
                  <warning>
index 19408e384b14bb0a16163cf91f6f86033625d352..337854d80b603fbffb1d4e3ab22d081c560c414c 100644 (file)
@@ -207,6 +207,8 @@ public:
       d_bits = (uint8_t) atoi(split.second.c_str());
       if(d_bits<32)
        d_mask=~(0xFFFFFFFF>>d_bits);
+      else
+       d_mask=0xFFFFFFFF;
     }
     else if(d_network.sin4.sin_family==AF_INET) {
       d_bits = 32;