mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-01-09 23:39:55 +00:00
BUG/MINOR: stream: bad return code
In error case, we expect the enum ACT_RET_PRS_ERR, but the function "stream_parse_use_service()" returns "-1" This patch must be backported in 1.6
This commit is contained in:
parent
ec9a58c709
commit
337eae1882
@ -3302,7 +3302,7 @@ static enum act_parse_ret stream_parse_use_service(const char **args, int *cur_a
|
||||
/* Check if the service name exists. */
|
||||
if (*(args[*cur_arg]) == 0) {
|
||||
memprintf(err, "'%s' expects a service name.", args[0]);
|
||||
return -1;
|
||||
return ACT_RET_PRS_ERR;
|
||||
}
|
||||
|
||||
/* lookup for keyword corresponding to a service. */
|
||||
|
Loading…
Reference in New Issue
Block a user