diff --git a/bin/tests/system/nsupdate/ns1/sample.db.in b/bin/tests/system/nsupdate/ns1/sample.db.in index 6881eb0162..9e85044759 100644 --- a/bin/tests/system/nsupdate/ns1/sample.db.in +++ b/bin/tests/system/nsupdate/ns1/sample.db.in @@ -1,3 +1,9 @@ +; Copyright (C) 2016 Internet Systems Consortium, Inc. ("ISC") +; +; This Source Code Form is subject to the terms of the Mozilla Public +; License, v. 2.0. If a copy of the MPL was not distributed with this +; file, You can obtain one at http://mozilla.org/MPL/2.0/. + @ 0 SOA ns1 . 0 0 0 0 0 @ 0 NS ns1 ns1 0 A 10.53.0.1 diff --git a/bin/tests/system/nsupdate/ns2/sample.db.in b/bin/tests/system/nsupdate/ns2/sample.db.in index fde9dae8d6..cd2e4f4212 100644 --- a/bin/tests/system/nsupdate/ns2/sample.db.in +++ b/bin/tests/system/nsupdate/ns2/sample.db.in @@ -1,3 +1,9 @@ +; Copyright (C) 2016 Internet Systems Consortium, Inc. ("ISC") +; +; This Source Code Form is subject to the terms of the Mozilla Public +; License, v. 2.0. If a copy of the MPL was not distributed with this +; file, You can obtain one at http://mozilla.org/MPL/2.0/. + @ 0 SOA ns2 . 0 0 0 0 0 @ 0 NS ns2 ns2 0 A 10.53.0.2 diff --git a/lib/samples/sample-update.c b/lib/samples/sample-update.c index 06d52dd423..809fa87fe6 100644 --- a/lib/samples/sample-update.c +++ b/lib/samples/sample-update.c @@ -158,7 +158,7 @@ main(int argc, char *argv[]) { port = isc_commandline_argument; break; case 'r': - if (nsa_recursive < + if (nsa_recursive < sizeof(sa_recursive)/sizeof(*sa_recursive) && addserver(isc_commandline_argument, &rec_servers, &sa_recursive[nsa_recursive]))