]> granicus.if.org Git - pdns/commitdiff
Add return 0 for correct exit of set-kind and set-account
authorRuben d'Arco <cyclops-github@prof-x.net>
Thu, 12 Apr 2018 06:21:41 +0000 (07:21 +0100)
committerRuben d'Arco <cyclops-github@prof-x.net>
Thu, 12 Apr 2018 15:22:43 +0000 (16:22 +0100)
Fixes #6471

pdns/pdnsutil.cc

index fedc0521bc67d84a52608392dfda1b4f83b6eb08..fe4705aa0a1b24ebb31ae196b9365a525fb8acd7 100644 (file)
@@ -2379,6 +2379,7 @@ try
   else if(cmds[0]=="set-kind") {
     if(cmds.size() != 3) {
       cerr<<"Syntax: pdnsutil set-kind ZONE KIND"<<endl;
+      return 0;
     }
     DNSName zone(cmds[1]);
     auto kind=DomainInfo::stringToKind(cmds[2]);
@@ -2387,6 +2388,7 @@ try
   else if(cmds[0]=="set-account") {
     if(cmds.size() != 3) {
       cerr<<"Syntax: pdnsutil set-account ZONE ACCOUNT"<<endl;
+      return 0;
     }
     DNSName zone(cmds[1]);
     exit(setZoneAccount(zone, cmds[2]));