]> git.kaiwu.me - haproxy.git/commit
BUG/MEDIUM: sample: Fix adjusting size in word converter
authorThayne McCombs <astrothayne@gmail.com>
Thu, 26 May 2022 04:58:51 +0000 (22:58 -0600)
committerWilly Tarreau <w@1wt.eu>
Fri, 27 May 2022 17:33:34 +0000 (19:33 +0200)
commit6a0d2176281bc59e8d81442a056495eb11c5a051
tree60f9bc1a50f9eba81bbea23a1d0b190b926ae75e
parentd8c195a326ca4154a18c11ba0ef90f5e00579ed0
BUG/MEDIUM: sample: Fix adjusting size in word converter

Adjust the size of the sample buffer before we change the "area"
pointer. Otherwise, we end up not changing the size, because the area
pointer is already the same as "start" before we compute the difference
between the two.

This is similar to the change in b28430591d18f7fda5bac2e0ea590b3a34f04601
but for the word converter instead of field.
src/sample.c