check isc_buffer_allocate result

This commit is contained in:
Mark Andrews 2015-08-23 19:29:40 +10:00
parent 5d68969ab3
commit 3979031a06

View 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) {