From 201ca5e646bdefd88c43079353129bec0e50fc00 Mon Sep 17 00:00:00 2001 From: Ben Kibbey Date: Fri, 29 Jul 2016 23:41:04 -0400 Subject: [PATCH] ATTR SET: check for element error. --- src/commands.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/commands.c b/src/commands.c index eaab89ed..7ff34b6f 100644 --- a/src/commands.c +++ b/src/commands.c @@ -2062,7 +2062,18 @@ attribute_set (struct client_s *client, char **args) return GPG_ERR_INV_VALUE; if (!xml_reserved_attribute (args[0])) + { n = xml_resolve_path (client, client->doc, (xmlChar *)args[1], NULL, &rc); + if (!rc) + { + rc = xml_new_request (client, args[1], XML_CMD_NONE, &req); + if (!rc) + { + rc = xml_check_recursion (client, req); + xml_free_request (req); + } + } + } else { rc = xml_new_request (client, args[1], XML_CMD_ATTR, &req); -- 2.11.4.GIT