-fix offset issue
This commit is contained in:
parent
52fe9d657b
commit
2fed889224
@ -14,7 +14,7 @@
|
|||||||
TALER; see the file COPYING. If not, see <http://www.gnu.org/licenses/>
|
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
|
* @brief Common functions for the exchange security modules
|
||||||
* @author Florian Dold <dold@taler.net>
|
* @author Florian Dold <dold@taler.net>
|
||||||
*/
|
*/
|
||||||
|
@ -298,8 +298,8 @@ TALER_CRYPTO_helper_rsa_poll (struct TALER_CRYPTO_RsaDenominationHelper *dh)
|
|||||||
ssize_t ret;
|
ssize_t ret;
|
||||||
|
|
||||||
ret = recv (dh->sock,
|
ret = recv (dh->sock,
|
||||||
buf,
|
buf + off,
|
||||||
sizeof (buf),
|
sizeof (buf) - off,
|
||||||
(dh->synced && (0 == off))
|
(dh->synced && (0 == off))
|
||||||
? MSG_DONTWAIT
|
? MSG_DONTWAIT
|
||||||
: 0);
|
: 0);
|
||||||
|
@ -91,6 +91,7 @@ TES_transmit (int sock,
|
|||||||
pos,
|
pos,
|
||||||
end - off,
|
end - off,
|
||||||
0 /* no flags => blocking! */);
|
0 /* no flags => blocking! */);
|
||||||
|
|
||||||
if ( (-1 == ret) &&
|
if ( (-1 == ret) &&
|
||||||
( (EAGAIN == errno) ||
|
( (EAGAIN == errno) ||
|
||||||
(EINTR == errno) ) )
|
(EINTR == errno) ) )
|
||||||
|
Loading…
Reference in New Issue
Block a user