]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
check isc_buffer_allocate result
authorMark Andrews <marka@isc.org>
Sun, 23 Aug 2015 09:29:40 +0000 (19:29 +1000)
committerMark Andrews <marka@isc.org>
Sun, 23 Aug 2015 09:29:40 +0000 (19:29 +1000)
bin/tests/wire_test.c

index 49416ab3c01704be673ab957f3a1720b98d67acc..acfedb413d975b52389031c0cba79d99ed3be73b 100644 (file)
@@ -185,7 +185,8 @@ main(int argc, char *argv[]) {
        } else
                f = stdin;
 
-       isc_buffer_allocate(mctx, &input, 64 * 1024);
+       result = isc_buffer_allocate(mctx, &input, 64 * 1024);
+       RUNTIME_CHECK(result == ISC_R_SUCCESS);
 
        if (rawdata) {
                while (fread(&c, 1, 1, f) != 0) {