fix rps
authorJulius Bünger <buenger@mytum.de>
Mon, 13 Mar 2017 00:29:22 +0000 (01:29 +0100)
committerJulius Bünger <buenger@mytum.de>
Mon, 13 Mar 2017 00:29:22 +0000 (01:29 +0100)
src/rps/gnunet-service-rps_peers.c

index 1679bd9f8fd4185b823d32839cb3bd87649af23f..698c1528eea4b946582513e9b5ec5b2a56f1b15e 100644 (file)
@@ -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;
 }