]> git.ipfire.org Git - thirdparty/ldns.git/commitdiff
Allow for zero signed delegations
authorMatthijs Mekking <matje@NLnetLabs.nl>
Thu, 28 Jun 2012 08:33:32 +0000 (08:33 +0000)
committerMatthijs Mekking <matje@NLnetLabs.nl>
Thu, 28 Jun 2012 08:33:32 +0000 (08:33 +0000)
examples/ldns-gen-zone.c

index cf5e5fd8d7a5958695b4d89ac8fb90a43cdb4121..c19d0f6dc05f213caecd26de8e0a9f5da8699ce6 100644 (file)
@@ -133,7 +133,7 @@ main(int argc, char **argv) {
                         break;
                 case 'p':
                         dsperc = atoi(optarg);
-                        if (dsperc <= 0 || dsperc > 100) {
+                        if (dsperc < 0 || dsperc > 100) {
                                 fprintf(stderr, "error: percentage of signed delegations must be between [0-100].\n");
                                 exit(EXIT_FAILURE);
                         }