mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-09-21 13:51:26 +02:00
CLEANUP: queue: Remove useless tests on p or pp in pendconn_process_next_strm()
This patch removes unecessary tests on p or pp pointers in pendconn_process_next_strm() function. This should make cppcheck happy and avoid false report of null pointer dereference. This patch should fix the issue #1036.
This commit is contained in:
parent
a1e0f387c7
commit
cd7126b396
10
src/queue.c
10
src/queue.c
@ -281,12 +281,12 @@ static int pendconn_process_next_strm(struct server *srv, struct proxy *px)
|
|||||||
|
|
||||||
if (!p && !pp)
|
if (!p && !pp)
|
||||||
return 0;
|
return 0;
|
||||||
|
else if (!pp)
|
||||||
|
goto use_p; /* p != NULL */
|
||||||
|
else if (!p)
|
||||||
|
goto use_pp; /* pp != NULL */
|
||||||
|
|
||||||
if (p && !pp)
|
/* p != NULL && pp != NULL*/
|
||||||
goto use_p;
|
|
||||||
|
|
||||||
if (pp && !p)
|
|
||||||
goto use_pp;
|
|
||||||
|
|
||||||
if (KEY_CLASS(p->node.key) < KEY_CLASS(pp->node.key))
|
if (KEY_CLASS(p->node.key) < KEY_CLASS(pp->node.key))
|
||||||
goto use_p;
|
goto use_p;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user