BUG/MINOR: server: Don't call fopen() with server-state filepath set to NULL

When a local server-state file is loaded, if its name is too long, the error
is not properly handled, resulting to a call to fopen() with the "filepath"
variable set to NULL. To fix the bug, when this error occurs, we jump to the
next proxy, via a "continue" statement. And we take case to set "filepath"
variable after the error handling to be sure.

This patch should fix the issue #1111. It must be backported as far as 1.6.

(cherry picked from commit 8952ea636b03fceb44c8172c4d9725a393e9146d)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
(cherry picked from commit acef6b9984c6877e162d181536235dade1860396)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
(cherry picked from commit f55c094bf1bc671476c584b0a788d68aaeb3f264)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
(cherry picked from commit 7ced1669684a0512702384514d9978de2de16dbb)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
1 file changed