]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
The forwarders statements in zones & views didn't work.
authorBrian Wellington <source@isc.org>
Thu, 25 Jan 2001 21:10:18 +0000 (21:10 +0000)
committerBrian Wellington <source@isc.org>
Thu, 25 Jan 2001 21:10:18 +0000 (21:10 +0000)
lib/dns/config/confparser.y.dirty

index c9259df2dfee6a86c5a4645234383d5af0e91018..2fba670e735cd34a213b2c6a6211f9c1fea390fd 100644 (file)
@@ -33,7 +33,7 @@
  * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  */
 
-/* $Id: confparser.y.dirty,v 1.51 2001/01/25 02:33:44 bwelling Exp $ */
+/* $Id: confparser.y.dirty,v 1.52 2001/01/25 21:10:18 bwelling Exp $ */
 
 #include <config.h>
 
@@ -3680,6 +3680,7 @@ view_option: L_FORWARD zone_forward_opt
 
                INSIST(view != NULL);
 
+               replace_zero_ports($2, default_port);
                tmpres = dns_c_view_setforwarders(view, $2);
                dns_c_iplist_detach(&$2);
                if (tmpres == ISC_R_EXISTS) {
@@ -5374,6 +5375,7 @@ zone_option: L_FILE L_QSTRING
 
                INSIST(zone != NULL);
 
+               replace_zero_ports($2, default_port);
                tmpres = dns_c_zone_setforwarders(zone, $2);
                dns_c_iplist_detach(&$2);
                if (tmpres == ISC_R_EXISTS) {