mirror of
http://git.haproxy.org/git/haproxy.git
synced 2026-02-20 03:28:40 +02: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:
committed by
Olivier Houchard
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);
|
||||
|
||||
Reference in New Issue
Block a user