]> git.ipfire.org Git - thirdparty/suricata.git/commit
eve/tls: don't construct const from other const
authorJason Ish <jason.ish@oisf.net>
Wed, 23 Oct 2024 21:45:05 +0000 (15:45 -0600)
committerVictor Julien <victor@inliniac.net>
Fri, 25 Oct 2024 05:47:10 +0000 (07:47 +0200)
commita739d7623b7481ce26df730b2332389688199b2e
tree27bb29b23b0c6b005d7e0bed17ee2a00617df392
parent175e690222b88bc917a23c7e7b04b0e4e6bbba17
eve/tls: don't construct const from other const

Some compiler/platform combinations don't like creating one const from
another as it can't guarantee the other is defined, resulting in the
following compile error:

output-json-tls.c:102:5: error: initializer element is not constant
     BASIC_FIELDS |
     ^~~~~~~~~~~~

Fixes commit 377989df6cea13a23349a4c53cfb037c3ecd6d83
src/output-json-tls.c