Menu

#12 There is infinite loop in script IMPORT

open
Youngmug
None
5
2017-08-23
2010-04-21
Anonymous
No

I install ProBIND 1.0.3
I saw infinite loop in script IMPORT for my config DNS.
Work of script IMPORT is O'k after my patch.


--- probind/etc/import 2010-04-16 15:23:19.000000000 +0400
+++ probind/etc/import.php 2010-04-21 14:17:46.000000000 +0400
@@ -296,9 +296,9 @@
if ($opts['v'])
print "Found zone: '$zone'\n";
next_conf_token($input); # skip the leading brace
- $braces = 1;
+ $braces = 0;
$options = "";
- while ($braces > 0) {
+ do {
$in_options = 1;
switch ($token = strtolower(next_conf_token($input))) {
case 'type';
@@ -338,7 +338,7 @@
$options .= "\n";
}
}
- }
+ } while ($braces > 0) ;
next_conf_token(input); # Skip the trailing semicolon
if (!$type
|| (($type == "master") && !$file)

Discussion

  • Youngmug

    Youngmug - 2010-06-10

    This might be related to an older bug where it would fail if a zone class was included. Can you please check after r80 and see if this bug is still valid? If so, please provide a test case.

     
  • emiliano ciangola

    Hi all, sorry but i have a problem with Probind.I can't to configure a conditional forwarding to other dns.
    It's possible with Probind to configure a conditional forwarding?
    Thank you very much?

     

Anonymous
Anonymous

Add attachments
Cancel





Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.