summaryrefslogtreecommitdiff
path: root/src/mint
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2015-09-22 16:21:20 +0200
committerChristian Grothoff <christian@grothoff.org>2015-09-22 16:21:20 +0200
commite62fd9d6547255c472c233cf74cef412fa0c7a9e (patch)
treed066bb9bc1469ae20f4063d887006d89d0af12c4 /src/mint
parent73c8b6787c67b9c3b5472559be803e465e50c4b6 (diff)
downloadexchange-e62fd9d6547255c472c233cf74cef412fa0c7a9e.tar.gz
exchange-e62fd9d6547255c472c233cf74cef412fa0c7a9e.tar.bz2
exchange-e62fd9d6547255c472c233cf74cef412fa0c7a9e.zip
fix leak
Diffstat (limited to 'src/mint')
-rw-r--r--src/mint/taler-mint-httpd_parsing.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/mint/taler-mint-httpd_parsing.c b/src/mint/taler-mint-httpd_parsing.c
index 4e7020bfe..389c0eed1 100644
--- a/src/mint/taler-mint-httpd_parsing.c
+++ b/src/mint/taler-mint-httpd_parsing.c
@@ -792,14 +792,14 @@ TMH_PARSE_navigate_json (struct MHD_Connection *connection,
where))
{
GNUNET_break_op (0);
- if (MHD_YES !=
- TMH_RESPONSE_reply_json_pack (connection,
- MHD_HTTP_BAD_REQUEST,
- "{s:s, s:O}",
- "error", "Bad format",
- "path", path))
- return GNUNET_SYSERR;
- return GNUNET_NO;
+ ret = (MHD_YES !=
+ TMH_RESPONSE_reply_json_pack (connection,
+ MHD_HTTP_BAD_REQUEST,
+ "{s:s, s:O}",
+ "error", "Bad format",
+ "path", path))
+ ? GNUNET_SYSERR : GNUNET_NO;
+ break;
}
if (0 != strcmp (where->currency,
TMH_mint_currency_string))