mirror of
https://github.com/haproxy/haproxy.git
synced 2026-04-15 21:59:41 -04: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
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Reference in a new issue