Skip to content

Commit

Permalink
Merge pull request #527 from mattmundell/get-vulns-error-8.0
Browse files Browse the repository at this point in the history
Allow vuln_iterator_opts_from_filter filter to be NULL (8.0)
  • Loading branch information
timopollmeier authored May 7, 2019
2 parents b2227b0 + c403e5d commit 8f5742e
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions src/manage_sql.c
Original file line number Diff line number Diff line change
Expand Up @@ -67068,11 +67068,15 @@ vuln_iterator_opts_from_filter (const gchar *filter)
int min_qod;
gchar *ret;

assert (filter);
if (filter)
{
task_id = filter_term_value (filter, "task_id");
report_id = filter_term_value (filter, "report_id");
host = filter_term_value (filter, "host");
}
else
task_id = report_id = host = NULL;

task_id = filter_term_value (filter, "task_id");
report_id = filter_term_value (filter, "report_id");
host = filter_term_value (filter, "host");
min_qod = filter_term_min_qod (filter);

ret = vuln_iterator_opts_table (task_id, report_id, host, min_qod);
Expand Down

0 comments on commit 8f5742e

Please sign in to comment.