aboutsummaryrefslogtreecommitdiff
path: root/src/proone-mkdvault.c
diff options
context:
space:
mode:
authorDavid Timber <mieabby@gmail.com>2021-04-09 20:39:23 +1000
committerDavid Timber <mieabby@gmail.com>2021-04-09 20:39:23 +1000
commitd99b1309b1c699103c26b316a373a64f5342b905 (patch)
tree7f4b6feefb83f0d6217d4a48c5602d88f4a979a7 /src/proone-mkdvault.c
parent875462207d4b702c98a3ef994caef8b1c95a1d9d (diff)
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()`
Diffstat (limited to 'src/proone-mkdvault.c')
-rw-r--r--src/proone-mkdvault.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/proone-mkdvault.c b/src/proone-mkdvault.c
index bcdc27b..962dcb6 100644
--- a/src/proone-mkdvault.c
+++ b/src/proone-mkdvault.c
@@ -56,6 +56,9 @@ static void add_file (const prne_data_key_t key, const char *path) {
prne_assert(fd >= 0 && size >= 0);
prne_assert(lseek(fd, 0, SEEK_SET) == 0);
+ /* FIXME
+ * Are empty entries allowed?
+ */
ENTRIES[key].data = prne_malloc(1, size);
ENTRIES[key].size = size;
ENTRIES[key].type = PRNE_DATA_TYPE_BIN;