]> granicus.if.org Git - pdns/commitdiff
for create-slave-zone, actually look at subsequent arguments, and not keep on adding...
authorbert hubert <bert.hubert@netherlabs.nl>
Tue, 7 Mar 2017 22:44:28 +0000 (23:44 +0100)
committerbert hubert <bert.hubert@netherlabs.nl>
Tue, 7 Mar 2017 22:44:28 +0000 (23:44 +0100)
pdns/pdnsutil.cc

index 7157b29a18a96d62e4b44ef13f554e547f5876e5..a72bbfae259e0fbf8b9a4f7f4590ad96ea7bd766 100644 (file)
@@ -1200,7 +1200,7 @@ int createSlaveZone(const vector<string>& cmds) {
   }
   vector<string> masters;
   for (unsigned i=2; i < cmds.size(); i++) {
-    ComboAddress master(cmds[2], 53);
+    ComboAddress master(cmds[i], 53);
     masters.push_back(master.toStringWithPort());
   }
   cerr<<"Creating slave zone '"<<zone<<"', with master(s) '"<<boost::join(masters, ",")<<"'"<<endl;