From 58bf195910842eaae0f1bfc641c024b9542b9ee6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20Jos=C3=A9=20Nicola?= Date: Thu, 23 Jan 2025 19:33:54 +0100 Subject: [PATCH] split function for parsing status and add unit test (#875) --- openvasd/openvasd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openvasd/openvasd.c b/openvasd/openvasd.c index 3541e946..f288aa91 100644 --- a/openvasd/openvasd.c +++ b/openvasd/openvasd.c @@ -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;