diff --git a/src/detect-urilen.c b/src/detect-urilen.c index b9c86408ee..4bbb17cd4d 100644 --- a/src/detect-urilen.c +++ b/src/detect-urilen.c @@ -97,7 +97,7 @@ int DetectUrilenMatch (ThreadVars *t, DetectEngineThreadCtx *det_ctx, Flow *f, SCMutexLock(&f->m); tx = list_get(htp_state->connp->conn->transactions, 0); - if (tx->request_uri == NULL) + if (tx == NULL || tx->request_uri == NULL) goto end; switch (urilend->mode) {