BUG/MINOR: backend: assign the wait list after the error check
authorWilly Tarreau <w@1wt.eu>
Sun, 28 Oct 2018 19:36:00 +0000 (20:36 +0100)
committerWilly Tarreau <w@1wt.eu>
Sun, 28 Oct 2018 19:36:00 +0000 (20:36 +0100)
commitcde1bc64cbdb76a04ecea8e2da74437498301275
treef0f13e103f04ebaa72c626569d430a95c6b352be
parent9d9ccdbf8b1178fefa2843c83bc6612733f9eca6
BUG/MINOR: backend: assign the wait list after the error check

Commit 85b73e9 ("BUG/MEDIUM: stream: Make sure polling is right on retry.")
introduced a possible null dereference on the error path detected by gcc-7.
Let's simply assign srv_conn after checking the error and not before.

No backport is needed.
src/backend.c