Commit 3979031a authored by Mark Andrews's avatar Mark Andrews
Browse files

check isc_buffer_allocate result

parent 5d68969a
...@@ -185,7 +185,8 @@ main(int argc, char *argv[]) { ...@@ -185,7 +185,8 @@ main(int argc, char *argv[]) {
} else } else
f = stdin; 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) { if (rawdata) {
while (fread(&c, 1, 1, f) != 0) { while (fread(&c, 1, 1, f) != 0) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment