]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: spoe: Be sure the sample is found before setting its context
authorChristopher Faulet <cfaulet@haproxy.com>
Mon, 6 May 2019 07:53:10 +0000 (09:53 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Tue, 7 May 2019 20:16:41 +0000 (22:16 +0200)
commit3b1d004d410129efcf365643d2583dcd2cb6ed0f
tree6669a6c413a0c1619e6d887f3a3d0c66ec12c81d
parent201fe406534a95bdd8c46b25e81b11e9209ad2f1
BUG/MEDIUM: spoe: Be sure the sample is found before setting its context

When a sample fetch is encoded, we use its context to set info about the
fragmentation. But if the sample is not found, the function sample_process()
returns NULL. So we me be sure the sample exists before setting its context.

This patch must be backported to 1.9 and 1.8.
include/proto/spoe.h
src/flt_spoe.c