Skip to content

Commit

Permalink
detect/http: fix compile warning in body tests
Browse files Browse the repository at this point in the history
When --enable-unittests w/o --enable-debug is used.

(cherry picked from commit e651cf9)
  • Loading branch information
victorjulien committed Apr 17, 2024
1 parent 04b6b96 commit f1091ba
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/tests/detect-http-client-body.c
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,7 @@ static int RunTest (struct TestSteps *steps, const char *sig, const char *yaml)
int i = 0;
while (b->input != NULL) {
SCLogDebug("chunk %p %d", b, i);
(void)i;
Packet *p = UTHBuildPacket(NULL, 0, IPPROTO_TCP);
FAIL_IF_NULL(p);
p->flow = &f;
Expand Down
1 change: 1 addition & 0 deletions src/tests/detect-http-server-body.c
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ static int RunTest(struct TestSteps *steps, const char *sig, const char *yaml)
int i = 0;
while (b->input != NULL) {
SCLogDebug("chunk %p %d", b, i);
(void)i;
Packet *p = UTHBuildPacket(NULL, 0, IPPROTO_TCP);
FAIL_IF_NULL(p);
p->flow = &f;
Expand Down

0 comments on commit f1091ba

Please sign in to comment.