diff options
-rw-r--r-- | src/rps/gnunet-service-rps.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/rps/gnunet-service-rps.c b/src/rps/gnunet-service-rps.c index 0b3befdcf..98e57a38e 100644 --- a/src/rps/gnunet-service-rps.c +++ b/src/rps/gnunet-service-rps.c | |||
@@ -1418,23 +1418,23 @@ check_peer_flag (const struct GNUNET_PeerIdentity *peer, | |||
1418 | * If not known yet, insert into known peers | 1418 | * If not known yet, insert into known peers |
1419 | * | 1419 | * |
1420 | * @param peer the peer whose liveliness is to be checked | 1420 | * @param peer the peer whose liveliness is to be checked |
1421 | * @return #GNUNET_YES if peer had to be inserted | 1421 | * @return #GNUNET_YES if the check was issued |
1422 | * #GNUNET_NO otherwise | 1422 | * #GNUNET_NO otherwise |
1423 | */ | 1423 | */ |
1424 | static int | 1424 | static int |
1425 | issue_peer_liveliness_check (const struct GNUNET_PeerIdentity *peer) | 1425 | issue_peer_liveliness_check (const struct GNUNET_PeerIdentity *peer) |
1426 | { | 1426 | { |
1427 | struct PeerContext *peer_ctx; | 1427 | struct PeerContext *peer_ctx; |
1428 | int ret; | ||
1429 | 1428 | ||
1430 | ret = insert_peer (peer); | 1429 | (void) insert_peer (peer); |
1431 | peer_ctx = get_peer_ctx (peer); | 1430 | peer_ctx = get_peer_ctx (peer); |
1432 | if ( (GNUNET_NO == check_peer_flag (peer, Peers_ONLINE)) && | 1431 | if ( (GNUNET_NO == check_peer_flag (peer, Peers_ONLINE)) && |
1433 | (NULL == peer_ctx->liveliness_check_pending) ) | 1432 | (NULL == peer_ctx->liveliness_check_pending) ) |
1434 | { | 1433 | { |
1435 | check_peer_live (peer_ctx); | 1434 | check_peer_live (peer_ctx); |
1435 | return GNUNET_YES; | ||
1436 | } | 1436 | } |
1437 | return ret; | 1437 | return GNUNET_NO; |
1438 | } | 1438 | } |
1439 | 1439 | ||
1440 | 1440 | ||