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:
f6bb0ba
)
Save next pointer in case mqm gets freed
author
David Barksdale
<amatus@amatus.name>
Mon, 30 Jan 2017 02:07:02 +0000
(20:07 -0600)
committer
David Barksdale
<amatus@amatus.name>
Mon, 30 Jan 2017 02:07:02 +0000
(20:07 -0600)
src/cadet/gnunet-service-cadet-new_peer.c
patch
|
blob
|
history
diff --git
a/src/cadet/gnunet-service-cadet-new_peer.c
b/src/cadet/gnunet-service-cadet-new_peer.c
index cc13f6da612a70a7b694c6ef94b71d396801745a..8db375510d93884401a7373f3405579267cca164 100644
(file)
--- a/
src/cadet/gnunet-service-cadet-new_peer.c
+++ b/
src/cadet/gnunet-service-cadet-new_peer.c
@@
-527,10
+527,12
@@
GCP_set_mq (struct CadetPeer *cp,
GCP_2s (cp),
mq);
cp->core_mq = mq;
- for (struct GCP_MessageQueueManager *mqm = cp->mqm_head;
+ for (struct GCP_MessageQueueManager *mqm = cp->mqm_head
, *next
;
NULL != mqm;
- mqm =
mqm->
next)
+ mqm = next)
{
+ /* Save next pointer in case mqm gets freed by the callback */
+ next = mqm->next;
if (NULL == mq)
{
if (NULL != mqm->env)