aboutsummaryrefslogtreecommitdiff
path: root/mod
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2024-06-12 20:01:40 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2024-06-12 20:07:42 +0300
commitec1cc3baa37b50f8b7813254bf7394b8cbc1de7f (patch)
treef8e587957173fcb5bb4c94e9332bb23e10c7e6cf /mod
parent478c790f33fd848bf42203521351f953638dcd68 (diff)
Fix previous fix
Diffstat (limited to 'mod')
-rw-r--r--mod/mod-build-task.cxx12
1 files 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 ();
}