Skip to content

Commit

Permalink
Merge pull request #462 from mattmundell/correct-get-feeds-type-8.0
Browse files Browse the repository at this point in the history
Correct checks on 'type' in GET_FEEDS
  • Loading branch information
timopollmeier authored Apr 5, 2019
2 parents e8b2c7e + 2a01b83 commit 114c3c3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/gmp.c
Original file line number Diff line number Diff line change
Expand Up @@ -14119,15 +14119,15 @@ handle_get_feeds (gmp_parser_t *gmp_parser, GError **error)
" status_text=\"" STATUS_OK_TEXT "\">");

if ((get_feeds_data->type == NULL)
|| strcmp (get_feeds_data->type, "nvt"))
|| (strcasecmp (get_feeds_data->type, "nvt") == 0))
get_feed (gmp_parser, error, NVT_FEED);

if ((get_feeds_data->type == NULL)
|| strcmp (get_feeds_data->type, "scap"))
|| (strcasecmp (get_feeds_data->type, "scap") == 0))
get_feed (gmp_parser, error, SCAP_FEED);

if ((get_feeds_data->type == NULL)
|| strcmp (get_feeds_data->type, "cert"))
|| (strcasecmp (get_feeds_data->type, "cert") == 0))
get_feed (gmp_parser, error, CERT_FEED);

SEND_TO_CLIENT_OR_FAIL ("</get_feeds_response>");
Expand Down

0 comments on commit 114c3c3

Please sign in to comment.