]> git.ipfire.org Git - thirdparty/suricata.git/commit
detect/threshold: Function to deep-copy thresh obj
authorJeff Lucovsky <jeff@lucovsky.org>
Mon, 29 Mar 2021 12:28:50 +0000 (08:28 -0400)
committerShivani Bhardwaj <shivanib134@gmail.com>
Thu, 29 Apr 2021 09:26:24 +0000 (14:56 +0530)
commit1233e922e1f16047e4d8f280676d41b8704d708a
tree8e38c5fc78b807fff248fb496dfcc977df8a67c3
parent7f5bc37e5cbc804d4ac1988090ebee6b1a1eaa65
detect/threshold: Function to deep-copy thresh obj

This commit adds a function to make a deep copy of a DetectThresholdData
object.

The function is used when parsing threshold.config items to make a
one-time object and then add copies as needed.

(cherry picked from commit e873632a2811be4cd370336d43fcc5619bcd28e2)
src/detect-threshold.c
src/detect-threshold.h