summaryrefslogtreecommitdiff
path: root/src/exchange-tools
diff options
context:
space:
mode:
Diffstat (limited to 'src/exchange-tools')
-rw-r--r--src/exchange-tools/taler-exchange-wire.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/exchange-tools/taler-exchange-wire.c b/src/exchange-tools/taler-exchange-wire.c
index 390c0e5e3..6daf3de27 100644
--- a/src/exchange-tools/taler-exchange-wire.c
+++ b/src/exchange-tools/taler-exchange-wire.c
@@ -76,6 +76,16 @@ sign_account_data (void *cls,
JSON_INDENT(2));
json_decref (wire);
GNUNET_assert (NULL != json_out);
+ if (GNUNET_OK !=
+ GNUNET_DISK_directory_create_for_file (ai->wire_response_filename))
+ {
+ GNUNET_log_strerror_file (GNUNET_ERROR_TYPE_ERROR,
+ "mkdir",
+ ai->wire_response_filename);
+ global_ret = 1;
+ free (json_out);
+ return;
+ }
out = fopen (ai->wire_response_filename,
"w+");
@@ -85,6 +95,7 @@ sign_account_data (void *cls,
"fopen",
ai->wire_response_filename);
global_ret = 1;
+ free (json_out);
return;
}
fprintf (out,