mirror of
https://github.com/isc-projects/bind9.git
synced 2026-05-28 04:34:54 -04:00
check isc_buffer_allocate result
This commit is contained in:
parent
5d68969ab3
commit
3979031a06
1 changed files with 2 additions and 1 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue