Skip to content

More detailed error handling for function "stop_task (...)". - #3009

Open
jhelmold wants to merge 1 commit into
mainfrom
GEA-1642_Scan_status_is_listed_as_Queued
Open

More detailed error handling for function "stop_task (...)".#3009
jhelmold wants to merge 1 commit into
mainfrom
GEA-1642_Scan_status_is_listed_as_Queued

Conversation

@jhelmold

@jhelmold jhelmold commented Jul 6, 2026

Copy link
Copy Markdown
Member

What

The returned error codes of the function "stop_task (...)" are handled in more detail now.

Why

This is part of a bug-fix.

References

GEA-1642

@jhelmold
jhelmold marked this pull request as ready for review July 6, 2026 12:43
@jhelmold
jhelmold requested review from a team as code owners July 6, 2026 12:43
Comment thread src/manage.c
if (scanner_type (task_scanner (task)) == SCANNER_TYPE_OPENVAS
|| scanner_type (task_scanner (task)) == SCANNER_TYPE_OSP_SENSOR)
return stop_osp_task (task);
return stop_osp_task (task) * 10;

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we have enough return codes for stop_task where using an enum and a small helper function that maps the return values from stop_osp_task would make things more readable.

Comment thread src/manage_sql_filters.c
Comment on lines +869 to +870
if (filter_column == NULL)
return NULL;

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This appears to be unrelated to the error handler improvements.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants