projects
/
oweals
/
gnunet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b15f1d8
)
-fix use after free on shutdown
author
Christian Grothoff
<christian@grothoff.org>
Sat, 2 Jul 2016 20:12:52 +0000
(20:12 +0000)
committer
Christian Grothoff
<christian@grothoff.org>
Sat, 2 Jul 2016 20:12:52 +0000
(20:12 +0000)
src/namestore/namestore_api.c
patch
|
blob
|
history
diff --git
a/src/namestore/namestore_api.c
b/src/namestore/namestore_api.c
index f5b9d941ba313bb45e3f6eb6382bd066c74172e9..afb7265d80ae6e94f736286ec45d33baae8e75c7 100644
(file)
--- a/
src/namestore/namestore_api.c
+++ b/
src/namestore/namestore_api.c
@@
-824,7
+824,7
@@
force_reconnect (struct GNUNET_NAMESTORE_Handle *h)
GNUNET_MQ_destroy (h->mq);
h->mq = NULL;
-
for (ze = h->z_head; NULL != ze; ze = ze->next
)
+
while (NULL != (ze = h->z_head)
)
{
/* FIXME: This does not allow clients to distinguish
iteration error from successful termination! */
@@
-832,7
+832,7
@@
force_reconnect (struct GNUNET_NAMESTORE_Handle *h)
ze->proc (ze->proc_cls, NULL, NULL, 0, NULL);
free_ze (ze);
}
-
for (qe = h->op_head; NULL != qe; qe = qe->next
)
+
while (NULL != (qe = h->op_head)
)
{
/* FIXME: This does not allow clients to distinguish
iteration error from successful termination! */