BUG/MINOR: spoe: Initialize variables used during conf parsing before any check
authorChristopher Faulet <cfaulet@haproxy.com>
Fri, 23 Mar 2018 13:37:14 +0000 (14:37 +0100)
committerWilly Tarreau <w@1wt.eu>
Thu, 5 Apr 2018 13:13:53 +0000 (15:13 +0200)
commit84c844eb12b250aa86f2aadaff77c42dfc3cb619
tree31a534444eb6d782905fa839ab8108e8cde6c06c
parent5bd37fa625e95130b4f576983943ef9a4b04d73c
BUG/MINOR: spoe: Initialize variables used during conf parsing before any check

Some initializations must be done at the beginning of parse_spoe_flt to avoid
segmentaion fault when first errors are catched, when the "filter spoe" line is
parsed.

This patch must be backported in 1.8.
[cf: the variable "curvars" doesn't exist in 1.8. So the patch must be adapted.]
src/flt_spoe.c