MINOR: sample: always set a new sample's owner before evaluating it
authorWilly Tarreau <w@1wt.eu>
Thu, 10 Mar 2016 15:28:58 +0000 (16:28 +0100)
committerWilly Tarreau <w@1wt.eu>
Thu, 10 Mar 2016 15:42:58 +0000 (16:42 +0100)
commit7560dd4b6a4b4f8ee2c002cd3ecb36e854cb8de1
tree49c4e0b435efe96eb97b231248011262bb32a57d
parent1777ea63e0b7375b51511bbc4a9c9f88f0f89171
MINOR: sample: always set a new sample's owner before evaluating it

Some functions like sample_conv_var2smp(), var_get_byname(), and
var_set_byname() directly or indirectly need to access the current
stream and/or session and must find it in the sample itself and not
as a distinct argument. Thus we first need to call smp_set_owner()
prior to each such calls.
src/hlua.c
src/sample.c