Browse Source

[2586] use !, not %, for a label char smaller than &.

% seems to (possibly) cause an unexpected side effect in an SQL statement.
JINMEI Tatuya 12 years ago
parent
commit
8d1f4d45b8

+ 1 - 1
src/bin/auth/tests/query_unittest.cc

@@ -1377,7 +1377,7 @@ TEST_P(QueryTest, nxdomainWithNSEC2) {
     // is derived from the next domain of the NSEC that proves NXDOMAIN, and
     // the NSEC to provide the non existence of wildcard is different from
     // the first NSEC.
-    query.process(*list_, Name("%.no.example.com"), qtype, response,
+    query.process(*list_, Name("!.no.example.com"), qtype, response,
                   true);
     responseCheck(response, Rcode::NXDOMAIN(), AA_FLAG, 0, 6, 0,
                   NULL, (string(soa_minttl_txt) +

+ 1 - 1
src/bin/auth/tests/testdata/example-base-inc.zone

@@ -150,7 +150,7 @@ t.example.com. 3600 IN RRSIG NSEC 5 3 3600 20000101000000 20000201000000 12345 e
 ;; the best possible wildcard is below the "next domain" of the NSEC RR that
 ;; proves the NXDOMAIN, i.e.,
 ;; mx.example.com. (exist)
-;; %.no.example.com. (qname, NXDOMAIN)
+;; !.no.example.com. (qname, NXDOMAIN)
 ;; &.no.example.com. (exist)
 ;; *.no.example.com. (best possible wildcard, not exist)
 ;var=no_txt