BUG/MINOR: sample: Set the correct type when a binary is converted to a string
authorChristopher Faulet <cfaulet@haproxy.com>
Thu, 30 Apr 2020 07:57:40 +0000 (09:57 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Tue, 5 May 2020 09:06:43 +0000 (11:06 +0200)
commit472ad51edeb4bb5ea601d7e296b5d0a0cd1a140a
tree022c239344d9ee97cad1fe0e838d6b64ea20c4d8
parent707ad328ef6f9061f2da04f81431bc2fe2b2348a
BUG/MINOR: sample: Set the correct type when a binary is converted to a string

A binary sample data can be converted, implicitly or not, to a string by cutting
the buffer on the first null byte.

I guess this patch should be backported to all stable versions.
src/sample.c