aboutsummaryrefslogtreecommitdiff
path: root/src/namestore/namestore_api.c
diff options
context:
space:
mode:
authorMatthias Wachs <wachs@net.in.tum.de>2012-03-15 13:47:51 +0000
committerMatthias Wachs <wachs@net.in.tum.de>2012-03-15 13:47:51 +0000
commitf815a16a9f505893ed948c775992a86fa8e5cbc0 (patch)
treef7576f1639460d6467f1d1c06eec74a53e11739f /src/namestore/namestore_api.c
parent2cbe9bad404f440d986ca3efe86e1a0e97181297 (diff)
downloadgnunet-f815a16a9f505893ed948c775992a86fa8e5cbc0.tar.gz
gnunet-f815a16a9f505893ed948c775992a86fa8e5cbc0.zip
- fixes
Diffstat (limited to 'src/namestore/namestore_api.c')
-rw-r--r--src/namestore/namestore_api.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/namestore/namestore_api.c b/src/namestore/namestore_api.c
index 85f14cdcf..ddf3742db 100644
--- a/src/namestore/namestore_api.c
+++ b/src/namestore/namestore_api.c
@@ -1544,6 +1544,15 @@ GNUNET_NAMESTORE_zone_iterator_next (struct GNUNET_NAMESTORE_ZoneIterator *it)
1544 1544
1545 GNUNET_assert (NULL != it); 1545 GNUNET_assert (NULL != it);
1546 h = it->h; 1546 h = it->h;
1547 struct GNUNET_NAMESTORE_ZoneIterator *tmp = it->h->z_head;
1548
1549 while (tmp != NULL)
1550 {
1551 if (tmp == it)
1552 break;
1553 tmp = tmp->next;
1554 }
1555 GNUNET_assert (NULL != tmp);
1547 1556
1548 /* set msg_size*/ 1557 /* set msg_size*/
1549 msg_size = sizeof (struct ZoneIterationNextMessage); 1558 msg_size = sizeof (struct ZoneIterationNextMessage);
@@ -1578,6 +1587,15 @@ GNUNET_NAMESTORE_zone_iteration_stop (struct GNUNET_NAMESTORE_ZoneIterator *it)
1578 struct PendingMessage *pe; 1587 struct PendingMessage *pe;
1579 size_t msg_size = 0; 1588 size_t msg_size = 0;
1580 struct GNUNET_NAMESTORE_Handle *h = it->h; 1589 struct GNUNET_NAMESTORE_Handle *h = it->h;
1590 struct GNUNET_NAMESTORE_ZoneIterator *tmp = it->h->z_head;
1591
1592 while (tmp != NULL)
1593 {
1594 if (tmp == it)
1595 break;
1596 tmp = tmp->next;
1597 }
1598 GNUNET_assert (NULL != tmp);
1581 1599
1582 /* set msg_size*/ 1600 /* set msg_size*/
1583 msg_size = sizeof (struct ZoneIterationStopMessage); 1601 msg_size = sizeof (struct ZoneIterationStopMessage);