From ec1cc3baa37b50f8b7813254bf7394b8cbc1de7f Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Wed, 12 Jun 2024 20:01:40 +0300 Subject: Fix previous fix --- mod/mod-build-task.cxx | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/mod/mod-build-task.cxx b/mod/mod-build-task.cxx index ff52f6b..06ba4f8 100644 --- a/mod/mod-build-task.cxx +++ b/mod/mod-build-task.cxx @@ -2261,13 +2261,15 @@ handle (request& rq, response& rs) { // Just try with the next rebuild. But first, restore the agent's // fingerprint and challenge and reset the task manifest and the - // session that we have prepared. + // session that we may have prepared. // - assert (task_build != nullptr); + if (task_build != nullptr) + b = move (task_build); - agent_fp = move (task_build->agent_fingerprint); - challenge = move (task_build->agent_challenge); - task_build = nullptr; + assert (b != nullptr); // Wouldn't be here otherwise. + + agent_fp = move (b->agent_fingerprint); + challenge = move (b->agent_challenge); task_response = task_response_manifest (); } -- cgit v1.1