Skip to content

Commit

Permalink
split function for parsing status and add unit test (#875)
Browse files Browse the repository at this point in the history
  • Loading branch information
jjnicola authored Jan 23, 2025
1 parent 1249956 commit 58bf195
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion openvasd/openvasd.c
Original file line number Diff line number Diff line change
Expand Up @@ -1471,7 +1471,7 @@ openvasd_parsed_scan_status (openvasd_connector_t conn)
resp = openvasd_get_scan_status (conn);

status_info = g_malloc0 (sizeof (struct openvasd_scan_status));
if (resp->code != 200 || !parse_status (resp->body, status_info))
if (resp->code != 200 || parse_status (resp->body, status_info) == -1)
{
status_info->status = status_code;
status_info->response_code = resp->code;
Expand Down

0 comments on commit 58bf195

Please sign in to comment.