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/pack.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/pack.c') diff --git a/src/pack.c b/src/pack.c index e62af2b..3bf9d75 100644 --- a/src/pack.c +++ b/src/pack.c @@ -57,6 +57,10 @@ prne_pack_rc_t prne_index_bin_archive ( goto END; } + /* FIXME + * Is an empty bin archive possible? + * This will fail when nb_bin == 0 + */ bin = (prne_bin_tuple_t*)prne_malloc(sizeof(prne_bin_tuple_t), nb_bin); if (bin == NULL) { ret = PRNE_PACK_RC_ERRNO; -- cgit