[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [gnunet] branch master updated: Fix: Cast closure to proper
From: |
gnunet |
Subject: |
[GNUnet-SVN] [gnunet] branch master updated: Fix: Cast closure to proper type |
Date: |
Fri, 24 Aug 2018 10:49:15 +0200 |
This is an automated email from the git hooks/post-receive script.
julius-buenger pushed a commit to branch master
in repository gnunet.
The following commit(s) were added to refs/heads/master by this push:
new ccd23df54 Fix: Cast closure to proper type
ccd23df54 is described below
commit ccd23df541fac1192f492b0169cb87f0f23a726d
Author: Julius Bünger <address@hidden>
AuthorDate: Fri Aug 24 10:48:34 2018 +0200
Fix: Cast closure to proper type
---
src/rps/gnunet-service-rps.c | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/src/rps/gnunet-service-rps.c b/src/rps/gnunet-service-rps.c
index 5d0e60508..5ed35e538 100644
--- a/src/rps/gnunet-service-rps.c
+++ b/src/rps/gnunet-service-rps.c
@@ -3094,7 +3094,8 @@ static int
check_peer_pull_reply (void *cls,
const struct GNUNET_RPS_P2P_PullReplyMessage *msg)
{
- struct GNUNET_PeerIdentity *sender = cls;
+ struct ChannelCtx *channel_ctx = cls;
+ struct PeerContext *sender_ctx = channel_ctx->peer_ctx;
if (sizeof (struct GNUNET_RPS_P2P_PullReplyMessage) > ntohs
(msg->header.size))
{
@@ -3114,11 +3115,12 @@ check_peer_pull_reply (void *cls,
return GNUNET_SYSERR;
}
- if (GNUNET_YES != check_peer_flag (sender, Peers_PULL_REPLY_PENDING))
+ if (GNUNET_YES != check_peer_flag (&sender_ctx->peer_id,
+ Peers_PULL_REPLY_PENDING))
{
LOG (GNUNET_ERROR_TYPE_WARNING,
"Received a pull reply from a peer (%s) we didn't request one from!\n",
- GNUNET_i2s (sender));
+ GNUNET_i2s (&sender_ctx->peer_id));
GNUNET_STATISTICS_update (stats,
"# unrequested pull replies",
1,
--
To stop receiving notification emails like this one, please contact
address@hidden
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] [gnunet] branch master updated: Fix: Cast closure to proper type,
gnunet <=