From: Maxime Henrion Date: Tue, 30 Dec 2025 18:58:56 +0000 (-0500) Subject: BUG/MAJOR: set the correct generation ID in pat_ref_append(). X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=51592f7a09fda52739a38e66aa3a3e4e7c1606cc;p=thirdparty%2Fhaproxy.git 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. --- diff --git a/src/pattern.c b/src/pattern.c index 1aecfde3b..ef6e8c2cf 100644 --- a/src/pattern.c +++ b/src/pattern.c @@ -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);