Skip to content

Commit

Permalink
Fix filt_id "Failed to find filter" messages
Browse files Browse the repository at this point in the history
Some of the messages used the type of the get_... command instead of
"filter" when the filter given by filt_id could not be found.
  • Loading branch information
timopollmeier committed Jan 21, 2021
1 parent 50adcc9 commit d522fec
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/gmp.c
Original file line number Diff line number Diff line change
Expand Up @@ -11133,7 +11133,7 @@ handle_get_alerts (gmp_parser_t *gmp_parser, GError **error)
break;
case 2:
if (send_find_error_to_client
("get_alerts", "alert", get_alerts_data->get.filt_id,
("get_alerts", "filter", get_alerts_data->get.filt_id,
gmp_parser))
{
error_send_to_client (error);
Expand Down Expand Up @@ -11697,7 +11697,7 @@ handle_get_configs (gmp_parser_t *gmp_parser, GError **error)
break;
case 2:
if (send_find_error_to_client
("get_configs", "config", get_configs_data->get.filt_id,
("get_configs", "filter", get_configs_data->get.filt_id,
gmp_parser))
{
error_send_to_client (error);
Expand Down Expand Up @@ -12067,7 +12067,7 @@ handle_get_credentials (gmp_parser_t *gmp_parser, GError **error)
break;
case 2:
if (send_find_error_to_client ("get_credentials",
"credential",
"filter",
get_credentials_data->get.filt_id,
gmp_parser))
{
Expand Down Expand Up @@ -12856,7 +12856,7 @@ handle_get_groups (gmp_parser_t *gmp_parser, GError **error)
break;
case 2:
if (send_find_error_to_client
("get_groups", "group", get_groups_data->get.filt_id,
("get_groups", "filter", get_groups_data->get.filt_id,
gmp_parser))
{
error_send_to_client (error);
Expand Down Expand Up @@ -14032,7 +14032,7 @@ handle_get_port_lists (gmp_parser_t *gmp_parser, GError **error)
break;
case 2:
if (send_find_error_to_client
("get_port_lists", "port_list",
("get_port_lists", "filter",
get_port_lists_data->get.filt_id, gmp_parser))
{
error_send_to_client (error);
Expand Down Expand Up @@ -15365,7 +15365,7 @@ handle_get_roles (gmp_parser_t *gmp_parser, GError **error)
break;
case 2:
if (send_find_error_to_client
("get_roles", "role", get_roles_data->get.filt_id,
("get_roles", "filter", get_roles_data->get.filt_id,
gmp_parser))
{
error_send_to_client (error);
Expand Down Expand Up @@ -16945,7 +16945,7 @@ handle_get_tasks (gmp_parser_t *gmp_parser, GError **error)
break;
case 2:
if (send_find_error_to_client
("get_tasks", "task", get_tasks_data->get.filt_id,
("get_tasks", "filter", get_tasks_data->get.filt_id,
gmp_parser))
{
error_send_to_client (error);
Expand Down Expand Up @@ -17663,7 +17663,7 @@ handle_get_users (gmp_parser_t *gmp_parser, GError **error)
break;
case 2:
if (send_find_error_to_client
("get_users", "user", get_users_data->get.filt_id,
("get_users", "filter", get_users_data->get.filt_id,
gmp_parser))
{
error_send_to_client (error);
Expand Down

0 comments on commit d522fec

Please sign in to comment.