This commit is contained in:
Jamie Cameron
2019-01-09 19:19:20 -08:00
parent a6e4dc21ad
commit d61bee0dec

View File

@@ -2991,7 +2991,7 @@ if (&has_ndc() == 2) {
" ".$rndc_args." 2>&1 </dev/null");
$ex = $?;
}
if (&has_ndc() != 2 || $out =~ /connect\s+failed/i) {
if (&has_ndc() != 2 || $out && $out =~ /connect\s+failed/i) {
if (&has_ndc(2)) {
# Try with ndc if rndc is not install or failed
$out = &backquote_logged("$config{'ndc_cmd'} $args 2>&1 </dev/null");