BUG/MINOR: log: fix multiple error paths in cfg_parse_log_forward()

Multiple error paths were badly handled in cfg_parse_log_forward():
some errors were raised without interrupting the function execution,
resulting in undefined behavior.

Instead of fixing issues separately, let's fix the whole function at once.
This should be backported as far as 2.4.

(cherry picked from commit 21cf42f5792af8324ab164991984b87c93018012)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
(cherry picked from commit 2a9dfb8c19e69008f80effde8b8cf8fef5757cc8)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
(cherry picked from commit e9726ce1b43c16a1e593eecaa3dc8344f54a801b)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
(cherry picked from commit 0b77577d2f3b7f6186b9d50bcab28771db814e8c)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
1 file changed