Skip to content

Commit 51592f7

Browse files
Maxime HenrionOlivier Houchard
authored andcommitted
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.
1 parent 54f59e4 commit 51592f7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/pattern.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2052,7 +2052,7 @@ struct pat_ref_elt *pat_ref_append(struct pat_ref *ref, unsigned int gen_id,
20522052
goto fail;
20532053
}
20542054

2055-
elt->gen_id = ref->curr_gen;
2055+
elt->gen_id = gen_id;
20562056
elt->line = line;
20572057

20582058
memcpy((char*)elt->pattern, pattern, len + 1);

0 commit comments

Comments
 (0)