]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: log: Detect missing sampling ranges in config
authorTim Duesterhus <tim@bastelstu.be>
Sun, 23 Jun 2019 20:10:10 +0000 (22:10 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Wed, 26 Jun 2019 09:15:49 +0000 (11:15 +0200)
commit2164800c1b9382d154e9e2d0c500e77b89efee77
tree25e71d60c46c73f95a4958cc482e0ade8936e985
parent2f6d3c0d65f09c342612d1b69198e23773fb7520
BUG/MINOR: log: Detect missing sampling ranges in config

Consider a config like:

    global
     log 127.0.0.1:10001 sample :10 local0

No sampling ranges are given here, leading to NULL being passed
as the first argument to qsort.

This configuration does not make sense anyway, a log without ranges
would never log. Thus output an error if no ranges are given.

This bug was introduced in d95ea2897eb951c72fd169f36b6a79905f2ed999.
This fix must be backported to HAProxy 2.0.
src/log.c