[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r16756 - gnunet/src/core
From: |
gnunet |
Subject: |
[GNUnet-SVN] r16756 - gnunet/src/core |
Date: |
Sun, 11 Sep 2011 13:37:02 +0200 |
Author: grothoff
Date: 2011-09-11 13:37:02 +0200 (Sun, 11 Sep 2011)
New Revision: 16756
Modified:
gnunet/src/core/core_api.c
Log:
allow handlers to be NULL
Modified: gnunet/src/core/core_api.c
===================================================================
--- gnunet/src/core/core_api.c 2011-09-11 09:54:37 UTC (rev 16755)
+++ gnunet/src/core/core_api.c 2011-09-11 11:37:02 UTC (rev 16756)
@@ -1379,8 +1379,9 @@
h->currently_down = GNUNET_YES;
h->peers = GNUNET_CONTAINER_multihashmap_create (128);
h->retry_backoff = GNUNET_TIME_UNIT_MILLISECONDS;
- while (handlers[h->hcnt].callback != NULL)
- h->hcnt++;
+ if (NULL != handlers)
+ while (handlers[h->hcnt].callback != NULL)
+ h->hcnt++;
GNUNET_assert (h->hcnt <
(GNUNET_SERVER_MAX_MESSAGE_SIZE -
sizeof (struct InitMessage)) / sizeof (uint16_t));
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r16756 - gnunet/src/core,
gnunet <=