Skip to content

Commit

Permalink
Fix create supertask fails when crackerType != pretask.crackerType
Browse files Browse the repository at this point in the history
Instead of returning an object, it  should return an ID instead.

Fixes: #969
  • Loading branch information
rixvet committed Aug 28, 2023
1 parent 1f93424 commit 37f3cf1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/inc/utils/SupertaskUtils.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ public static function runSupertask($supertaskId, $hashlistId, $crackerId) {
foreach ($pretasks as $pretask) {
$crackerBinaryId = $cracker->getId();
if ($cracker->getCrackerBinaryTypeId() != $pretask->getCrackerBinaryTypeId()) {
$crackerBinaryId = CrackerBinaryUtils::getNewestVersion($pretask->getCrackerBinaryTypeId());
$crackerBinaryId = CrackerBinaryUtils::getNewestVersion($pretask->getCrackerBinaryTypeId())->getId();
}

$task = new Task(
Expand Down

0 comments on commit 37f3cf1

Please sign in to comment.