]> git.ipfire.org Git - thirdparty/suricata.git/commit
time: Force init cached_minute_start array
authorMaurizio Abba <mabba@lastline.com>
Thu, 11 Jan 2018 14:34:37 +0000 (14:34 +0000)
committerVictor Julien <victor@inliniac.net>
Tue, 30 Jan 2018 09:32:17 +0000 (10:32 +0100)
commit8623b52db4b3435931ea8b6249577390c00746e7
tree97889d43925d85138dda3e9d2cf69022b04c2174
parent316788ad5c80476d3e945fe6bc9c3b1e26c2f754
time: Force init cached_minute_start array

In offline mode, if the starting timestamp is 0 suricata will never
initialize cached_minute_start array. This cause the timestamp to be
ignored when needed (e.g., in fast.log).

This commit will force the initialization of this array.
src/util-time.c