]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
2073. [bug] Incorrect semantics check for update policy "wildcard".
authorMark Andrews <marka@isc.org>
Mon, 21 Aug 2006 00:11:43 +0000 (00:11 +0000)
committerMark Andrews <marka@isc.org>
Mon, 21 Aug 2006 00:11:43 +0000 (00:11 +0000)
                        [RT #16353]

CHANGES
lib/bind9/check.c

diff --git a/CHANGES b/CHANGES
index 371c451a78548646fa0645fac132852fe7a8294c..c408c221a2349aa93060058bae1fcb4572469090 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,3 +1,6 @@
+2073.  [bug]           Incorrect semantics check for update policy "wildcard".
+                       [RT #16353]
+
 2072.  [bug]           We were not generating valid HMAC SHA digests.
                        [RT #16320]
 
index b052a50ab5570346980dd4018043d9ee71d7fd0a..653eeb0cfda6710c538357391183943318deec39 100644 (file)
@@ -15,7 +15,7 @@
  * PERFORMANCE OF THIS SOFTWARE.
  */
 
-/* $Id: check.c,v 1.75 2006/06/04 23:17:06 marka Exp $ */
+/* $Id: check.c,v 1.76 2006/08/21 00:11:43 marka Exp $ */
 
 /*! \file */
 
@@ -816,13 +816,6 @@ check_update_policy(const cfg_obj_t *policy, isc_log_t *logctx) {
                                    "'%s' is not a valid name", str);
                        result = tresult;
                }
-               if (tresult == ISC_R_SUCCESS &&
-                   strcasecmp(cfg_obj_asstring(matchtype), "wildcard") == 0 &&
-                   !dns_name_iswildcard(dns_fixedname_name(&fixed))) {
-                       cfg_obj_log(identity, logctx, ISC_LOG_ERROR,
-                                   "'%s' is not a wildcard", str);
-                       result = ISC_R_FAILURE;
-               }
 
                dns_fixedname_init(&fixed);
                str = cfg_obj_asstring(dname);
@@ -835,6 +828,13 @@ check_update_policy(const cfg_obj_t *policy, isc_log_t *logctx) {
                                    "'%s' is not a valid name", str);
                        result = tresult;
                }
+               if (tresult == ISC_R_SUCCESS &&
+                   strcasecmp(cfg_obj_asstring(matchtype), "wildcard") == 0 &&
+                   !dns_name_iswildcard(dns_fixedname_name(&fixed))) {
+                       cfg_obj_log(identity, logctx, ISC_LOG_ERROR,
+                                   "'%s' is not a wildcard", str);
+                       result = ISC_R_FAILURE;
+               }
 
                for (element2 = cfg_list_first(typelist);
                     element2 != NULL;