Never set the status of script recon tasks outside the script.

This commit is contained in:
Ramon Novoa 2016-11-02 13:10:32 +01:00
parent da83bdc7a6
commit 9b79307668
1 changed files with 2 additions and 2 deletions

View File

@ -533,8 +533,8 @@ sub exec_recon_script ($$$) {
logger ($pa_config, "Cannot execute recon task command $command."); logger ($pa_config, "Cannot execute recon task command $command.");
} }
# Notify this recon task is ended # Only update the timestamp in case something went wrong. The script should set the status.
update_recon_task ($dbh, $task->{'id_rt'}, -1); db_do ($dbh, 'UPDATE trecon_task SET utimestamp = ? WHERE id_rt = ?', time (), $task->{'id_rt'});
logger($pa_config, 'Done executing recon script ' . safe_output($script->{'name'}), 10); logger($pa_config, 'Done executing recon script ' . safe_output($script->{'name'}), 10);
return 0; return 0;