mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2026-01-14 21:31:00 +01:00
BUG/MAJOR: set the correct generation ID in pat_ref_append().
This fixes crashes when creating more than one new revision of a map or acl file and purging the previous version.
This commit is contained in:
parent
54f59e4669
commit
51592f7a09
@ -2052,7 +2052,7 @@ struct pat_ref_elt *pat_ref_append(struct pat_ref *ref, unsigned int gen_id,
|
||||
goto fail;
|
||||
}
|
||||
|
||||
elt->gen_id = ref->curr_gen;
|
||||
elt->gen_id = gen_id;
|
||||
elt->line = line;
|
||||
|
||||
memcpy((char*)elt->pattern, pattern, len + 1);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user