Skip to content

Commit 209c912

Browse files
committed
Always check the current lists before inserting on blueprints
Fixes #2282
1 parent 50f042e commit 209c912

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/XCCDF_POLICY/xccdf_policy_remediate.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -724,7 +724,7 @@ static inline int _parse_blueprint_fix(const char *fix_text, struct blueprint_cu
724724
memcpy(val, &fix_text[ovector[2]], ovector[3] - ovector[2]);
725725
val[ovector[3] - ovector[2]] = '\0';
726726

727-
if (!oscap_list_contains(customizations->kernel_append, val, (oscap_cmp_func) oscap_streq)) {
727+
if (!oscap_list_contains(tab[i].list, val, (oscap_cmp_func) oscap_streq)) {
728728
oscap_list_prepend(tab[i].list, val);
729729
} else {
730730
free(val);

0 commit comments

Comments
 (0)