[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r25260 - gnunet/src/ats
From: |
gnunet |
Subject: |
[GNUnet-SVN] r25260 - gnunet/src/ats |
Date: |
Wed, 5 Dec 2012 16:38:21 +0100 |
Author: wachs
Date: 2012-12-05 16:38:20 +0100 (Wed, 05 Dec 2012)
New Revision: 25260
Modified:
gnunet/src/ats/ats_api_performance.c
Log:
callback check
Modified: gnunet/src/ats/ats_api_performance.c
===================================================================
--- gnunet/src/ats/ats_api_performance.c 2012-12-05 14:56:17 UTC (rev
25259)
+++ gnunet/src/ats/ats_api_performance.c 2012-12-05 15:38:20 UTC (rev
25260)
@@ -507,7 +507,8 @@
GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
_("Received last message for %s \n"), "ATS_ADDRESSLIST_RESPONSE");
bandwidth_zero.value__ = htonl (0);
- alh->cb (ph->infocb_cls,
+ if (NULL != alh->cb)
+ alh->cb (ph->infocb_cls,
NULL,
bandwidth_zero, bandwidth_zero,
NULL, 0);
@@ -523,7 +524,8 @@
if ((GNUNET_YES == alh->all_addresses) || (GNUNET_YES == active))
{
- alh->cb (ph->infocb_cls,
+ if (NULL != alh->cb)
+ alh->cb (ph->infocb_cls,
&address,
pi->bandwidth_out, pi->bandwidth_in,
atsi, ats_count);
@@ -770,6 +772,8 @@
struct AddressListRequestMessage *m;
GNUNET_assert (NULL != handle);
+ if (NULL == infocb)
+ return NULL;
alh = GNUNET_malloc (sizeof (struct GNUNET_ATS_AddressListHandle));
alh->id = handle->id;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r25260 - gnunet/src/ats,
gnunet <=