]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: lua: initialize sample before using it
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Thu, 29 Oct 2020 16:21:20 +0000 (17:21 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Thu, 29 Oct 2020 17:52:44 +0000 (18:52 +0100)
commitbc0af6a19947c7ab76bd226beaaaafedc0648be4
treed88a75c539fd43d89d71f9b338d9e5814b279cc1
parente6ba7915ebdfb79d1d74eb402bbc2747c4a1c6dd
BUG/MINOR: lua: initialize sample before using it

Memset the sample before using it through hlua_lua2smp. This function is
ORing the smp.flags, so this field need to be cleared before its use.
This was reported by a coverity warning.

Fixes the github issue #929.
This bug can be backported up to 1.8.
src/hlua.c