Skip to content

Commit

Permalink
Fix type check on JSON result/detail/type
Browse files Browse the repository at this point in the history
  • Loading branch information
mattmundell authored and bjoernricks committed Jan 13, 2025
1 parent 72284c7 commit 27ce2ac
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 @@ -1184,7 +1184,7 @@ openvasd_parsed_results (openvasd_connector_t conn, unsigned long first,
cJSON *source_obj;

if ((source_obj = cJSON_GetObjectItem (detail_obj, "type")) != NULL
&& cJSON_IsObject (source_obj))
&& cJSON_IsString (source_obj))
detail_source_type = g_strdup (source_obj->valuestring);

if ((source_obj = cJSON_GetObjectItem (detail_obj, "name")) != NULL
Expand Down

0 comments on commit 27ce2ac

Please sign in to comment.