]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: server: check return value of fopen() in apply_server_state()
authorVedran Furac <vedranf@haproxy.com>
Wed, 16 Oct 2019 12:49:38 +0000 (14:49 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Mon, 21 Oct 2019 14:00:24 +0000 (16:00 +0200)
commit5d48627aba315a47589871c6fda83a4f07b23a71
treee312d65e79bedabf55c9125c8dd2251f269c3f09
parent4381d26edc03faa46401eb0fe82fd7be84be14fd
BUG/MINOR: server: check return value of fopen() in apply_server_state()

fopen() can return NULL when state file is missing. This patch adds a
check of fopen() return value so we can skip processing in such case.

No backport needed.
src/server.c