]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: lists: Properly handle the case we're removing the first elt.
authorOlivier Houchard <ohouchard@haproxy.com>
Tue, 26 Feb 2019 17:46:07 +0000 (18:46 +0100)
committerOlivier Houchard <cognet@ci0.org>
Tue, 26 Feb 2019 17:47:59 +0000 (18:47 +0100)
commitdb64489aac2135c6ceceec47fe98dc42c0558466
tree306c9e1430737db49475d3a42429f22ec6dc2518
parent9ea5d361ae1b096779d00ab671d154353559cd73
BUG/MEDIUM: lists: Properly handle the case we're removing the first elt.

In LIST_DEL_LOCKED(), initialize p2 to NULL, and only attempt to set it back
to its previous value if we had a previous element, and thus p2 is non-NULL.
include/common/mini-clist.h