Skip to content

Commit f8c3339

Browse files
authored
Merge pull request #159 from exonet/nsec3param-iteration-0
Remove not-working iterations check
2 parents 17a7b18 + 0c0470b commit f8c3339

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Resources/Zone.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@ public function setNsec3param(?string $nsec3param): self
367367
if ($flags === null || !ctype_digit($flags) || ((int) $flags !== 0 && (int) $flags !== 1)) {
368368
throw new InvalidNsec3Param('The nsec3param flags parameter must be set to 0 or 1.');
369369
}
370-
if ($iterations === null || !ctype_digit($iterations) || $iterations === 0 || $iterations > 2500) {
370+
if ($iterations === null || !ctype_digit($iterations) || $iterations > 2500) {
371371
throw new InvalidNsec3Param('The nsec3param iterations parameter must be between 0 and 2500.');
372372
}
373373
if ($salt === null || strlen($salt) === 0 || strlen($salt) > 255) {

0 commit comments

Comments
 (0)