From be53480113f041fa3db56fddeeb088e1641e885b Mon Sep 17 00:00:00 2001 From: Matt Mundell Date: Mon, 6 May 2019 12:50:37 +0200 Subject: [PATCH 1/2] Add missing breaks to CREATE_TAG and MODIFY_TAG --- src/gmp.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/gmp.c b/src/gmp.c index 67fbba6cf..887550a31 100644 --- a/src/gmp.c +++ b/src/gmp.c @@ -24370,6 +24370,7 @@ gmp_xml_handle_end_element (/* unused */ GMarkupParseContext* context, } g_free (error_extra); log_event_fail ("tag", "Tag", NULL, "created"); + break; case 2: SEND_TO_CLIENT_OR_FAIL ("tag_id, "modified"); + break; case 3: SEND_TO_CLIENT_OR_FAIL (XML_ERROR_SYNTAX ("modify_tag", @@ -27233,6 +27235,7 @@ gmp_xml_handle_end_element (/* unused */ GMarkupParseContext* context, " or empty.")); log_event_fail ("tag", "Tag", modify_tag_data->tag_id, "modified"); + break; case 4: if (send_find_error_to_client ("modify_tag", "resource", error_extra, @@ -27244,6 +27247,7 @@ gmp_xml_handle_end_element (/* unused */ GMarkupParseContext* context, } g_free (error_extra); log_event_fail ("tag", "Tag", NULL, "modified"); + break; case 5: SEND_TO_CLIENT_OR_FAIL (" Date: Mon, 6 May 2019 12:53:36 +0200 Subject: [PATCH 2/2] Correct MODIFY_TAG error response --- src/gmp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gmp.c b/src/gmp.c index 887550a31..93ef51aab 100644 --- a/src/gmp.c +++ b/src/gmp.c @@ -27250,7 +27250,7 @@ gmp_xml_handle_end_element (/* unused */ GMarkupParseContext* context, break; case 5: SEND_TO_CLIENT_OR_FAIL - (""); log_event_fail ("tag", "Tag", NULL, "modified");