From: Julius Bünger Date: Mon, 13 Mar 2017 00:29:22 +0000 (+0100) Subject: fix rps X-Git-Tag: gnunet-0.11.0rc0~284^2~7 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=4dda2c006592ef0188317a3f2d5c3127aee5a139;p=oweals%2Fgnunet.git fix rps --- diff --git a/src/rps/gnunet-service-rps_peers.c b/src/rps/gnunet-service-rps_peers.c index 1679bd9f8..698c1528e 100644 --- a/src/rps/gnunet-service-rps_peers.c +++ b/src/rps/gnunet-service-rps_peers.c @@ -1429,10 +1429,10 @@ Peers_handle_inbound_channel (void *cls, Peers_CHANNEL_ESTABLISHED_TWICE); GNUNET_CADET_channel_destroy (channel); /* return the channel context */ - return (struct PeerContext *) initiator; + return &peer_ctx->peer_id; } peer_ctx->recv_channel = channel; - return (struct PeerContext *) initiator; + return &peer_ctx->peer_id; }