projects
/
haproxy-2.5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2d232c2
)
BUG/MINOR: buffers: MT_LIST_DEL_SAFE() expects the temporary pointer.
author
Olivier Houchard
<ohouchard@haproxy.com>
Tue, 10 Mar 2020 16:39:21 +0000
(17:39 +0100)
committer
Olivier Houchard
<cognet@ci0.org>
Tue, 10 Mar 2020 16:44:40 +0000
(17:44 +0100)
When calling MT_LIST_DEL_SAFE(), give him the temporary pointer "tmpelt",
as that's what is expected. We want to be able to set that pointer to NULL,
to let other parts of the code know we deleted an element.
src/buffer.c
patch
|
blob
|
history
diff --git
a/src/buffer.c
b/src/buffer.c
index
9c1c9b4
..
a7f405b
100644
(file)
--- a/
src/buffer.c
+++ b/
src/buffer.c
@@
-120,7
+120,7
@@
void __offer_buffer(void *from, unsigned int threshold)
if (wait->target == from || !wait->wakeup_cb(wait->target))
continue;
- MT_LIST_DEL_SAFE(&wait->list);
+ MT_LIST_DEL_SAFE(elt1);
avail--;
}
}