mirror of
https://github.com/haproxy/haproxy.git
synced 2026-04-10 19:36:14 -04:00
BUG: spoe: Fix parsing of SPOE actions in ACK frames
For "SET-VAR" actions, data was not correctly parsed. 'idx' variable was not correctly updated when the 3rd argument was parsed.
This commit is contained in:
parent
97108e08ce
commit
b5cff60ef5
1 changed files with 3 additions and 1 deletions
|
|
@ -2017,8 +2017,10 @@ process_spoe_actions(struct stream *s, struct spoe_context *ctx,
|
|||
goto skip;
|
||||
memset(&smp, 0, sizeof(smp));
|
||||
smp_set_owner(&smp, s->be, s->sess, s, dir|SMP_OPT_FINAL);
|
||||
if (decode_spoe_data(p+idx, p+size, &smp) == -1)
|
||||
|
||||
if ((i = decode_spoe_data(p+idx, p+size, &smp)) == -1)
|
||||
goto skip;
|
||||
idx += i;
|
||||
|
||||
SPOE_PRINTF(stderr, "%d.%06d [SPOE/%-15s] %s: stream=%p"
|
||||
" - set-var '%s.%s.%.*s'\n",
|
||||
|
|
|
|||
Loading…
Reference in a new issue