]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Assert tsigout is non-NULL
authorMark Andrews <marka@isc.org>
Tue, 7 Jul 2020 09:12:35 +0000 (19:12 +1000)
committerMark Andrews <marka@isc.org>
Mon, 13 Jul 2020 03:10:19 +0000 (13:10 +1000)
(cherry picked from commit 827746e89b4b1b72d6d3dccb849f98d6918c03a2)

lib/dns/tests/tsig_test.c

index 11d011aa9a51422cc10cbd1746a1fa3697d56a27..e534d29b25854b1c2d289f7557ee77913385d342 100644 (file)
@@ -318,6 +318,7 @@ tsig_tcp_test(void **state) {
        result = isc_buffer_allocate(mctx, &buf, 65535);
        assert_int_equal(result, ISC_R_SUCCESS);
        render(buf, DNS_MESSAGEFLAG_QR, key, &querytsig, &tsigout, NULL);
+       assert_non_null(tsigout);
 
        /*
         * Process response message 1.