diff options
author | Christian Grothoff <christian@grothoff.org> | 2012-06-24 15:47:22 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2012-06-24 15:47:22 +0000 |
commit | beed9f716b7c5ceabe82846acabc66a6d33610f5 (patch) | |
tree | a40e29f47cd0288eb5ffad0d64aed6d0d45edddc /src/peerinfo | |
parent | b738ee3d6782daa19f289d6e372c700f6347a05b (diff) | |
download | gnunet-beed9f716b7c5ceabe82846acabc66a6d33610f5.tar.gz gnunet-beed9f716b7c5ceabe82846acabc66a6d33610f5.zip |
-fix
Diffstat (limited to 'src/peerinfo')
-rw-r--r-- | src/peerinfo/peerinfo_api.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/peerinfo/peerinfo_api.c b/src/peerinfo/peerinfo_api.c index 17db1d494..f82e8f793 100644 --- a/src/peerinfo/peerinfo_api.c +++ b/src/peerinfo/peerinfo_api.c | |||
@@ -527,12 +527,12 @@ peerinfo_handler (void *cls, const struct GNUNET_MessageHeader *msg) | |||
527 | trigger_transmit (h); | 527 | trigger_transmit (h); |
528 | if (GNUNET_NO == h->in_receive) | 528 | if (GNUNET_NO == h->in_receive) |
529 | { | 529 | { |
530 | h->in_receive = GNUNET_YES; | 530 | if (NULL != h->ic_head) |
531 | if (h->ic_head != NULL) | 531 | { |
532 | h->in_receive = GNUNET_YES; | ||
532 | GNUNET_CLIENT_receive (h->client, &peerinfo_handler, h, | 533 | GNUNET_CLIENT_receive (h->client, &peerinfo_handler, h, |
533 | GNUNET_TIME_absolute_get_remaining (h->ic_head->timeout)); | 534 | GNUNET_TIME_absolute_get_remaining (h->ic_head->timeout)); |
534 | else | 535 | } |
535 | GNUNET_break (0); | ||
536 | } | 536 | } |
537 | if (NULL != cb) | 537 | if (NULL != cb) |
538 | cb (cb_cls, NULL, NULL, NULL); | 538 | cb (cb_cls, NULL, NULL, NULL); |