]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
handle multi-line NSEC3 record better
authorMark Andrews <marka@isc.org>
Thu, 6 Oct 2011 22:11:39 +0000 (22:11 +0000)
committerMark Andrews <marka@isc.org>
Thu, 6 Oct 2011 22:11:39 +0000 (22:11 +0000)
bin/tests/system/dnssec/tests.sh

index 2c1bd1a2d8b0d102e6340635b08bd1f0772b1aae..73b35d3d8a2de2462d4dc1299c43989c47610ff3 100644 (file)
@@ -15,7 +15,7 @@
 # OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
 # PERFORMANCE OF THIS SOFTWARE.
 
-# $Id: tests.sh,v 1.93 2011/09/02 21:55:16 each Exp $
+# $Id: tests.sh,v 1.94 2011/10/06 22:11:39 marka Exp $
 
 SYSTEMTESTTOP=..
 . $SYSTEMTESTTOP/conf.sh
@@ -982,11 +982,12 @@ cd signer
 cat example.db.in $key1.key $key2.key > example.db
 $SIGNER -3 - -H 10 -o example -f example.db example.db > /dev/null 2>&1
 awk '/^IQF9LQTLK/ {
-               printf("%s ", $0);
-               getline;
-               printf ("%s ", $0); 
-               getline;
-               print;
+               printf("%s", $0);
+               while (!match($0, "\\)")) {
+                       getline;
+                       printf (" %s", $0); 
+               }
+               printf("\n");
        }' example.db | sed 's/[        ][      ]*/ /g' > nsec3param.out
 
 grep "IQF9LQTLKKNFK0KVIFELRAK4IC4QLTMG.example. 0 IN NSEC3 1 0 10 - ( IQF9LQTLKKNFK0KVIFELRAK4IC4QLTMG A NS SOA RRSIG DNSKEY NSEC3PARAM )" nsec3param.out > /dev/null