From: Victor Julien Date: Mon, 13 Feb 2023 07:53:03 +0000 (+0100) Subject: stream: fix direction macro to be used in conditions X-Git-Tag: suricata-7.0.0-rc2~567 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=449ed7554708977ddfa7cf60f7328c102c050593;p=thirdparty%2Fsuricata.git stream: fix direction macro to be used in conditions --- diff --git a/src/stream.h b/src/stream.h index 51ae39daf2..4821dc9981 100644 --- a/src/stream.h +++ b/src/stream.h @@ -27,7 +27,7 @@ #include "decode.h" #include "stream-tcp-private.h" -#define STREAM_FLAGS_FOR_PACKET(p) PKT_IS_TOSERVER((p)) ? STREAM_TOSERVER : STREAM_TOCLIENT +#define STREAM_FLAGS_FOR_PACKET(p) (PKT_IS_TOSERVER((p)) ? STREAM_TOSERVER : STREAM_TOCLIENT) #define STREAM_DUMP_TOCLIENT BIT_U8(1) #define STREAM_DUMP_TOSERVER BIT_U8(2)