]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
pdnsutil edit-zone: correctly reask inc-serial question. Fixes #10328 10513/head
authorPeter van Dijk <peter.van.dijk@powerdns.com>
Mon, 21 Jun 2021 11:40:02 +0000 (13:40 +0200)
committerPeter van Dijk <peter.van.dijk@powerdns.com>
Mon, 21 Jun 2021 11:40:02 +0000 (13:40 +0200)
pdns/pdnsutil.cc

index a5c99b19d09b9e85719903426ff544b5a159fc1a..9af168ffe2e5ee9df9ad5977ffc3fde2099fdc16 100644 (file)
@@ -1245,6 +1245,7 @@ static int editZone(const DNSName &zone) {
   }
   if (changed.size() > 0) {
     if (changed.find({zone, QType::SOA}) == changed.end()) {
+     reAsk3:;
       cout<<endl<<"You have not updated the SOA record! Would you like to increase-serial?"<<endl;
       cout<<"(y)es - increase serial, (n)o - leave SOA record as is, (e)dit your changes, (q)uit:"<<endl;
       int c = read1char();
@@ -1279,7 +1280,7 @@ static int editZone(const DNSName &zone) {
           break;
         case 'n':
         default:
-          goto reAsk2;
+          goto reAsk3;
           break;
       }
     }