* and if so, if we actually have any in the flow. If not, the sig
* can't match and we skip it. */
if ((p->flags & PKT_HAS_FLOW) && (sflags & SIG_FLAG_REQUIRE_FLOWVAR)) {
+ DEBUG_VALIDATE_BUG_ON(f == NULL);
+
int m = f->flowvar ? 1 : 0;
/* no flowvars? skip this sig */
/* grab the protocol state we will detect on */
if (p->flags & PKT_HAS_FLOW) {
+ DEBUG_VALIDATE_BUG_ON(pflow == NULL);
+
if (p->flowflags & FLOW_PKT_TOSERVER) {
flow_flags = STREAM_TOSERVER;
SCLogDebug("flag STREAM_TOSERVER set");
#define DEBUG_VALIDATE_BUG_ON(exp) BUG_ON((exp))
+#elif defined(__clang_analyzer__)
+
+#define DEBUG_ASSERT_FLOW_LOCKED(f)
+#define DEBUG_VALIDATE_FLOW(f)
+#define DEBUG_VALIDATE_PACKET(p)
+#define DEBUG_VALIDATE_BUG_ON(exp) BUG_ON((exp))
+
#else /* DEBUG_VALIDATE */
#define DEBUG_ASSERT_FLOW_LOCKED(f)