Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add new scan status PENDING. #336

Merged
merged 1 commit into from
May 19, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
- Add unit tests for networking.c port list functions. [#325](https://github.com/greenbone/gvm-libs/pull/325)
- Add gmp_start_task_ext_c. [#327](https://github.com/greenbone/gvm-libs/pull/327)
- Make log mutex visible. [#328](https://github.com/greenbone/gvm-libs/pull/328)
- Add new scan status PENDING. [#336](https://github.com/greenbone/gvm-libs/pull/336)

### Fixed
- Fix is_cidr_block(). [#322](https://github.com/greenbone/gvm-libs/pull/322)
Expand Down
4 changes: 3 additions & 1 deletion osp/osp.c
Original file line number Diff line number Diff line change
Expand Up @@ -572,7 +572,9 @@ osp_get_scan_status_ext (osp_connection_t *connection,
return status;
}

if (!strcmp (entity_attribute (child, "status"), "init"))
if (!strcmp (entity_attribute (child, "status"), "pending"))
status = OSP_SCAN_STATUS_PENDING;
else if (!strcmp (entity_attribute (child, "status"), "init"))
status = OSP_SCAN_STATUS_INIT;
else if (!strcmp (entity_attribute (child, "status"), "running"))
status = OSP_SCAN_STATUS_RUNNING;
Expand Down
1 change: 1 addition & 0 deletions osp/osp.h
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ typedef enum
OSP_SCAN_STATUS_RUNNING, /**< Running status. */
OSP_SCAN_STATUS_STOPPED, /**< Stopped status. */
OSP_SCAN_STATUS_FINISHED, /**< Finished status. */
OSP_SCAN_STATUS_PENDING, /**< Init pending. */
} osp_scan_status_t;


Expand Down