summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJulius Bünger <buenger@mytum.de>2015-02-15 17:19:54 +0000
committerJulius Bünger <buenger@mytum.de>2015-02-15 17:19:54 +0000
commitfde2f5cdbc9e241ce4112c6f9b0d2faf52d6b94f (patch)
tree0dd283eb42a6d8bb8b7b0ae8f8b94d0fc9a0276c /src
parent5a63f4cf0e61bc916e83a33f004263f9ff9e15f7 (diff)
- fixed behaviour of init_peer_cb()
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);
}