]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: backend: check srv_conn before dereferencing it
authorWilly Tarreau <w@1wt.eu>
Fri, 1 Feb 2019 15:38:48 +0000 (16:38 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 1 Feb 2019 15:47:46 +0000 (16:47 +0100)
commit1da41ecf5bcf7cfd19baaa521cea23af6b4c8adb
treef6bd886d099de91639d379da8796389f16b26e97
parent9c4f08ae3915fe325d9d40f269652b88bfdefe03
BUG/MINOR: backend: check srv_conn before dereferencing it

Commit 3c4e19f42 ("BUG/MEDIUM: backend: always release the previous
connection into its own target srv_list") introduced a valid warning
about a null-deref risk since we didn't check conn_new()'s return value.

This patch must be backported to 1.9 with the patch above.
src/backend.c