Skip to content

Commit d8ce6c6

Browse files
ozgengreenbonebot
authored andcommitted
fix: stretch success validation for creating scan in agent controller
1 parent 6ac0cc2 commit d8ce6c6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/manage.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6958,7 +6958,7 @@ launch_agent_control_task (task_t task,
69586958

69596959
// Create scan
69606960
http_scanner_resp = http_scanner_create_scan (connection, payload);
6961-
if (!http_scanner_resp || http_scanner_resp->code != 201)
6961+
if (!http_scanner_resp || http_scanner_resp->code < 200 || http_scanner_resp->code >= 300)
69626962
{
69636963
if (error) *error = g_strdup ("Scanner failed to create the scan");
69646964
goto make_report;

0 commit comments

Comments
 (0)