From 3979031a068668bdf5d4f9179f1a5c3de683f201 Mon Sep 17 00:00:00 2001 From: Mark Andrews Date: Sun, 23 Aug 2015 19:29:40 +1000 Subject: [PATCH] check isc_buffer_allocate result --- bin/tests/wire_test.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/tests/wire_test.c b/bin/tests/wire_test.c index 49416ab3c0..acfedb413d 100644 --- a/bin/tests/wire_test.c +++ b/bin/tests/wire_test.c @@ -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) {