diff options
Diffstat (limited to 'src/util')
| -rw-r--r-- | src/util/taler-exchange-secmod-cs.c | 2 | ||||
| -rw-r--r-- | src/util/taler-exchange-secmod-eddsa.c | 2 | ||||
| -rw-r--r-- | src/util/taler-exchange-secmod-rsa.c | 5 | 
3 files changed, 6 insertions, 3 deletions
diff --git a/src/util/taler-exchange-secmod-cs.c b/src/util/taler-exchange-secmod-cs.c index 33167c8e..ffd12dee 100644 --- a/src/util/taler-exchange-secmod-cs.c +++ b/src/util/taler-exchange-secmod-cs.c @@ -1215,7 +1215,6 @@ import_key (void *cls,      GNUNET_log_strerror_file (GNUNET_ERROR_TYPE_WARNING,                                "open",                                filename); -    GNUNET_break (0 == close (fd));      return GNUNET_OK;    }    if (0 != fstat (fd, @@ -1224,6 +1223,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)) diff --git a/src/util/taler-exchange-secmod-eddsa.c b/src/util/taler-exchange-secmod-eddsa.c index 21aedbc2..9f6f6d74 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))) diff --git a/src/util/taler-exchange-secmod-rsa.c b/src/util/taler-exchange-secmod-rsa.c index 670804e7..713c3498 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))  | 
