gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-exchange] branch master updated: improve logging


From: gnunet
Subject: [taler-exchange] branch master updated: improve logging
Date: Fri, 15 Jan 2021 12:18:29 +0100

This is an automated email from the git hooks/post-receive script.

grothoff pushed a commit to branch master
in repository exchange.

The following commit(s) were added to refs/heads/master by this push:
     new 7c8d8b79 improve logging
7c8d8b79 is described below

commit 7c8d8b79178403a8c43ee4cc82b421d8fe978246
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Fri Jan 15 12:18:27 2021 +0100

    improve logging
---
 src/util/crypto_helper_denom.c | 4 ++--
 src/util/crypto_helper_esign.c | 9 +++++----
 2 files changed, 7 insertions(+), 6 deletions(-)

diff --git a/src/util/crypto_helper_denom.c b/src/util/crypto_helper_denom.c
index 01ed6626..1ef24d3f 100644
--- a/src/util/crypto_helper_denom.c
+++ b/src/util/crypto_helper_denom.c
@@ -126,7 +126,7 @@ try_connect (struct TALER_CRYPTO_DenominationHelper *dh)
   dh->my_sa.sun_family = AF_UNIX;
   strncpy (dh->my_sa.sun_path,
            tmpdir,
-           sizeof (dh->sa.sun_path));
+           sizeof (dh->sa.sun_path) - 1);
   if (0 != unlink (tmpdir))
     GNUNET_log_strerror_file (GNUNET_ERROR_TYPE_WARNING,
                               "unlink",
@@ -219,7 +219,7 @@ TALER_CRYPTO_helper_denom_connect (
   dh->sa.sun_family = AF_UNIX;
   strncpy (dh->sa.sun_path,
            unixpath,
-           sizeof (dh->sa.sun_path));
+           sizeof (dh->sa.sun_path) - 1);
   dh->sock = -1;
   {
     char *tmpdir;
diff --git a/src/util/crypto_helper_esign.c b/src/util/crypto_helper_esign.c
index fdf4c90b..8308934b 100644
--- a/src/util/crypto_helper_esign.c
+++ b/src/util/crypto_helper_esign.c
@@ -127,7 +127,7 @@ try_connect (struct TALER_CRYPTO_ExchangeSignHelper *esh)
   esh->my_sa.sun_family = AF_UNIX;
   strncpy (esh->my_sa.sun_path,
            tmpdir,
-           sizeof (esh->sa.sun_path));
+           sizeof (esh->sa.sun_path) - 1);
   if (0 != unlink (tmpdir))
     GNUNET_log_strerror_file (GNUNET_ERROR_TYPE_WARNING,
                               "unlink",
@@ -220,7 +220,7 @@ TALER_CRYPTO_helper_esign_connect (
   esh->sa.sun_family = AF_UNIX;
   strncpy (esh->sa.sun_path,
            unixpath,
-           sizeof (esh->sa.sun_path));
+           sizeof (esh->sa.sun_path) - 1);
   esh->sock = -1;
   {
     char *tmpdir;
@@ -484,8 +484,9 @@ TALER_CRYPTO_helper_esign_sign_ (
                   sizeof (esh->sa));
     if (ret < 0)
     {
-      GNUNET_log_strerror (GNUNET_ERROR_TYPE_WARNING,
-                           "sendto");
+      GNUNET_log_strerror_file (GNUNET_ERROR_TYPE_WARNING,
+                                "sendto",
+                                esh->sa.sun_path);
       do_disconnect (esh);
       return TALER_EC_EXCHANGE_SIGNKEY_HELPER_UNAVAILABLE;
     }

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]