summaryrefslogtreecommitdiff
path: root/src/util/taler-exchange-secmod-eddsa.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2022-06-07 15:02:08 +0200
committerChristian Grothoff <christian@grothoff.org>2022-06-07 15:02:16 +0200
commitb9a30d29cb91ec66c3bb8d956640d20e641b6a4d (patch)
tree4ad72e722981bb1ef68a643a7f9cff6f1323497b /src/util/taler-exchange-secmod-eddsa.c
parent013942ba917958d31a9923f612f4c0f388f7b178 (diff)
downloadexchange-b9a30d29cb91ec66c3bb8d956640d20e641b6a4d.tar.gz
exchange-b9a30d29cb91ec66c3bb8d956640d20e641b6a4d.tar.bz2
exchange-b9a30d29cb91ec66c3bb8d956640d20e641b6a4d.zip
-fix minor bugs
Diffstat (limited to 'src/util/taler-exchange-secmod-eddsa.c')
-rw-r--r--src/util/taler-exchange-secmod-eddsa.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/util/taler-exchange-secmod-eddsa.c b/src/util/taler-exchange-secmod-eddsa.c
index 21aedbc2a..9f6f6d746 100644
--- a/src/util/taler-exchange-secmod-eddsa.c
+++ b/src/util/taler-exchange-secmod-eddsa.c
@@ -918,6 +918,7 @@ import_key (void *cls,
GNUNET_log_strerror_file (GNUNET_ERROR_TYPE_WARNING,
"stat",
filename);
+ GNUNET_break (0 == close (fd));
return GNUNET_OK;
}
if (! S_ISREG (sbuf.st_mode))
@@ -925,6 +926,7 @@ import_key (void *cls,
GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
"File `%s' is not a regular file, which is not allowed for private keys!\n",
filename);
+ GNUNET_break (0 == close (fd));
return GNUNET_OK;
}
if (0 != (sbuf.st_mode & (S_IWUSR | S_IRWXG | S_IRWXO)))