From 2a01b83f5d631fedcd3dcc58a4fa718cdfec8fd0 Mon Sep 17 00:00:00 2001 From: Matt Mundell Date: Fri, 5 Apr 2019 12:00:55 +0200 Subject: [PATCH] Correct checks on 'type' in GET_FEEDS --- src/gmp.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/gmp.c b/src/gmp.c index e88f75865..c3828b7fe 100644 --- a/src/gmp.c +++ b/src/gmp.c @@ -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 ("");