Skip to content

Commit

Permalink
Don't try to poke nsec3params if we don't have a domain object.
Browse files Browse the repository at this point in the history
  • Loading branch information
ShaneMcC committed Nov 10, 2018
1 parent 65d9c7d commit 7eeab06
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tasks/workers/bind_zone_changed.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public function run($job) {

$commands[] = '/usr/sbin/rndc signing -clear all %1$s';
$commands[] = '/usr/sbin/rndc sign %1$s';
if ($domain !== FALSE) {
if ($domain instanceof Domain) {
$nsec3param = $domain->getNSEC3Params();
if (!empty($nsec3param)) {
$commands[] = '/usr/sbin/rndc signing -nsec3param ' . $nsec3param . ' %1$s';
Expand Down

0 comments on commit 7eeab06

Please sign in to comment.