diff options
Diffstat (limited to 'src/iobuf.c')
-rw-r--r-- | src/iobuf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/iobuf.c b/src/iobuf.c index 2b65ce7..a78e965 100644 --- a/src/iobuf.c +++ b/src/iobuf.c @@ -23,7 +23,7 @@ bool prne_alloc_iobuf (prne_iobuf_t *ib, const size_t ny_size) { uint8_t *ny; ny = (uint8_t*)prne_realloc(ib->ownership ? ib->m : NULL, 1, ny_size); - if (ny == NULL) { + if (ny == NULL && ny_size > 0) { return false; } |