summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/rps/gnunet-service-rps.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/rps/gnunet-service-rps.c b/src/rps/gnunet-service-rps.c
index 323a03bb2..2a391e4d5 100644
--- a/src/rps/gnunet-service-rps.c
+++ b/src/rps/gnunet-service-rps.c
@@ -1505,8 +1505,7 @@ init_peer_cb (void *cls,
struct PeerContext *peer_ctx;
server = (struct GNUNET_SERVER_Handle *) cls;
- if (NULL != peer
- && 0 != GNUNET_CRYPTO_cmp_peer_identity (&own_identity, peer))
+ if (0 != GNUNET_CRYPTO_cmp_peer_identity (&own_identity, peer))
{
LOG (GNUNET_ERROR_TYPE_DEBUG,
"Got peer %s (at %p) from CADET (gossip_list_size: %u)\n",
@@ -1538,7 +1537,7 @@ init_peer_cb (void *cls,
// send push/pull to each of those peers?
}
- else
+ else if (NULL == peer)
rps_start (server);
}