]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: actions: Normalize the return code of the configuration parsers
authorThierry FOURNIER <tfournier@arpalert.org>
Wed, 19 Aug 2015 07:04:15 +0000 (09:04 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 20 Aug 2015 15:13:47 +0000 (17:13 +0200)
commitafa80496db6d25e76d090aa833713e937dd4174a
tree9e0fc229c0b3a0ecb9a24b43981e9c4c327a863b
parent322a12486707eef68f7ca516a478365c012dd3cf
MEDIUM: actions: Normalize the return code of the configuration parsers

This patch normalize the return code of the configuration parsers. Before
these changes, the tcp action parser returned -1 if fail and 0 for the
succes. The http action returned 0 if fail and 1 if succes.

The normalisation does:
 - ACT_RET_PRS_OK for succes
 - ACT_RET_PRS_ERR for failure
include/types/action.h
src/hlua.c
src/proto_http.c
src/proto_tcp.c
src/vars.c