Merge in SNORT/snort3 from ~VHORBATO/snort3:fixup_tree_tsan to master
Squashed commit of the following:
commit
aa509bd5fb8a21cc3365a427e434086401d15523
Author: vhorbato <vhorbato@cisco.com>
Date: Tue Sep 19 11:14:34 2023 +0300
detection: avoid multiple fixups of duplicated trees
free_detection_option_tree(node);
root->children[i] = (detection_option_tree_node_t*)dup_node;
}
- fixup_tree(root->children[i], true, 0);
+ else
+ {
+ fixup_tree(root->children[i], true, 0);
+ }
debug_logf(detection_trace, TRACE_OPTION_TREE, nullptr, "%3d %3d %p %4s\n",
0, root->num_children, (void*)root, "root");