aboutsummaryrefslogtreecommitdiff
path: root/src/util_rt.c
diff options
context:
space:
mode:
authorDavid Timber <mieabby@gmail.com>2021-08-13 18:22:35 +1000
committerDavid Timber <mieabby@gmail.com>2021-08-13 21:50:26 +1000
commit73799fe772152089a6c57aa339f08426cf3eaf11 (patch)
tree6f7c7d2b6266c84ef49499791f252bea2feccd81 /src/util_rt.c
parenta685a85d71e4948c61e811ca24c7b85d601bfcba (diff)
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
Diffstat (limited to 'src/util_rt.c')
-rw-r--r--src/util_rt.c3
1 files changed, 3 insertions, 0 deletions
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;
}