From d99b1309b1c699103c26b316a373a64f5342b905 Mon Sep 17 00:00:00 2001 From: David Timber Date: Fri, 9 Apr 2021 20:39:23 +1000 Subject: Impl hostinfod, bug fix and more * Merge /src/data/sql/hi-create.sql and /src/data/sql/hi-view.sql * Fix false failure when allocation size is zero * Add "FIXME" comment where it is not clear whether zero size is normal case. * Fix typo in /src/proone-bne.c * "proone-htbthost": always verify ALPN * Fix crash bug in `prne_htbt_dser_host_info()` --- src/iobuf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/iobuf.c') 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; } -- cgit