Skip to content

Commit

Permalink
Fix: Use right command name when modifying report_configs
Browse files Browse the repository at this point in the history
  • Loading branch information
mattmundell committed Mar 12, 2024
1 parent 483d010 commit 47bf18f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/gmp_report_configs.c
Original file line number Diff line number Diff line change
Expand Up @@ -446,7 +446,7 @@ modify_report_config_reset ()
g_slist_free_1 (modify_report_config_data.context->first);
}
g_free (modify_report_config_data.context);
memset (&modify_report_config_data, 0, sizeof (create_report_config_t));
memset (&modify_report_config_data, 0, sizeof (modify_report_config_t));
}

/**
Expand Down Expand Up @@ -518,7 +518,7 @@ modify_report_config_run (gmp_parser_t *gmp_parser, GError **error)
SEND_TO_CLIENT_OR_FAIL
(XML_ERROR_SYNTAX ("modify_report_config",
"The NAME element must not be empty"));
create_report_config_reset ();
modify_report_config_reset ();
return;
}

Expand All @@ -541,7 +541,7 @@ modify_report_config_run (gmp_parser_t *gmp_parser, GError **error)
break;
}
case 1:
if (send_find_error_to_client ("create_report_config",
if (send_find_error_to_client ("modify_report_config",
"Report Config",
report_config_id,
gmp_parser))
Expand All @@ -554,9 +554,9 @@ modify_report_config_run (gmp_parser_t *gmp_parser, GError **error)
break;
case 2:
SEND_TO_CLIENT_OR_FAIL
(XML_ERROR_SYNTAX ("create_report_config",
(XML_ERROR_SYNTAX ("modify_report_config",
"Report config with given name exists already"));
log_event_fail ("report_config", "Report Config", NULL, "created");
log_event_fail ("report_config", "Report Config", NULL, "modified");
break;
case 3:
SENDF_TO_CLIENT_OR_FAIL
Expand Down

0 comments on commit 47bf18f

Please sign in to comment.