From 432503895d043d6efe01ca7317f8f4ecdf7a01c7 Mon Sep 17 00:00:00 2001 From: Juan Jose Nicola Date: Thu, 4 Apr 2019 08:55:57 -0500 Subject: [PATCH] Backport PR #291. Check kb before check for reload. --- src/openvassd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/openvassd.c b/src/openvassd.c index 4d4a0724d..35bb51db0 100644 --- a/src/openvassd.c +++ b/src/openvassd.c @@ -680,7 +680,6 @@ main_loop () struct scan_globals *globals; check_termination (); - check_kb_status (); wait_for_children1 (); lg_address = sizeof (struct sockaddr_un); soc = accept (global_iana_socket, (struct sockaddr *) (&address), @@ -696,6 +695,7 @@ main_loop () /* Check for reload after accept() but before we fork, to ensure that * Manager gets full updated feed in case of NVT update connection. */ + check_kb_status (); check_reload (); if (create_process ((process_func_t) scanner_thread, globals) < 0) {