summaryrefslogtreecommitdiff
path: root/src/util/taler-exchange-secmod-rsa.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-rsa.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-rsa.c')
-rw-r--r--src/util/taler-exchange-secmod-rsa.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/util/taler-exchange-secmod-rsa.c b/src/util/taler-exchange-secmod-rsa.c
index 670804e7b..713c3498d 100644
--- a/src/util/taler-exchange-secmod-rsa.c
+++ b/src/util/taler-exchange-secmod-rsa.c
@@ -628,8 +628,8 @@ sem_up (struct Semaphore *sem)
static void
sem_done (struct Semaphore *sem)
{
- pthread_cond_destroy (&sem->cv);
- pthread_mutex_destroy (&sem->mutex);
+ GNUNET_break (0 == pthread_cond_destroy (&sem->cv));
+ GNUNET_break (0 == pthread_mutex_destroy (&sem->mutex));
}
@@ -1625,6 +1625,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))