From 6493fa5c7f616520eed25c2357914afe80c9eb56 Mon Sep 17 00:00:00 2001 From: David Timber Date: Sat, 30 Oct 2021 11:21:00 +0800 Subject: Code documentation and bug fixes ... * Add convenience function prne_sfree_str() * Use prne_sfree_str() to scrub off sensitive data * Making the brute force login vector optional BNE param cred_dict can be null * Use O_EXCL when creating temporary files * Fix bug where bne_cb_uptime() returns the up time of the child process, not the parent --- src/proone.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/proone.c') diff --git a/src/proone.c b/src/proone.c index a5375f4..b81a91d 100644 --- a/src/proone.c +++ b/src/proone.c @@ -1335,7 +1335,7 @@ static void bne_cb_exit_dd (void *ctx) { static uint64_t bne_cb_uptime (void *ctx) { return prne_sub_timespec( prne_gettime(CLOCK_MONOTONIC), - prne_g.child_start).tv_sec; + prne_g.parent_start).tv_sec; } static int bne_cb_vercmp (void *ctx, const uint8_t *uuid) { -- cgit