[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-exchange] branch master updated: -fix offset issue
From: |
gnunet |
Subject: |
[taler-exchange] branch master updated: -fix offset issue |
Date: |
Fri, 19 Nov 2021 21:26:37 +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 2fed8892 -fix offset issue
2fed8892 is described below
commit 2fed889224082a88cd3e1bca1c50e2c6409127df
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Fri Nov 19 21:26:35 2021 +0100
-fix offset issue
---
src/util/crypto_helper_common.c | 2 +-
src/util/crypto_helper_rsa.c | 4 ++--
src/util/secmod_common.c | 1 +
3 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/src/util/crypto_helper_common.c b/src/util/crypto_helper_common.c
index 2aa6dbac..b89ee847 100644
--- a/src/util/crypto_helper_common.c
+++ b/src/util/crypto_helper_common.c
@@ -14,7 +14,7 @@
TALER; see the file COPYING. If not, see <http://www.gnu.org/licenses/>
*/
/**
- * @file util/secmod_common.c
+ * @file util/crypto_helper_common.c
* @brief Common functions for the exchange security modules
* @author Florian Dold <dold@taler.net>
*/
diff --git a/src/util/crypto_helper_rsa.c b/src/util/crypto_helper_rsa.c
index 088aae9f..f9c4d60f 100644
--- a/src/util/crypto_helper_rsa.c
+++ b/src/util/crypto_helper_rsa.c
@@ -298,8 +298,8 @@ TALER_CRYPTO_helper_rsa_poll (struct
TALER_CRYPTO_RsaDenominationHelper *dh)
ssize_t ret;
ret = recv (dh->sock,
- buf,
- sizeof (buf),
+ buf + off,
+ sizeof (buf) - off,
(dh->synced && (0 == off))
? MSG_DONTWAIT
: 0);
diff --git a/src/util/secmod_common.c b/src/util/secmod_common.c
index ff95caf5..a14f523c 100644
--- a/src/util/secmod_common.c
+++ b/src/util/secmod_common.c
@@ -91,6 +91,7 @@ TES_transmit (int sock,
pos,
end - off,
0 /* no flags => blocking! */);
+
if ( (-1 == ret) &&
( (EAGAIN == errno) ||
(EINTR == errno) ) )
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [taler-exchange] branch master updated: -fix offset issue,
gnunet <=