Fixed unitialized values in ndpiReader protocol detection bitmask during dga selftest.

* make ./tests/vagrind_test.sh directory agnostic

Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
This commit is contained in:
Toni Uhlig
2020-06-23 17:23:56 +02:00
parent d9af1562f0
commit 39800c88fa
2 changed files with 4 additions and 1 deletions
+1
View File
@@ -3142,6 +3142,7 @@ static void dgaUnitTest() {
assert(ndpi_str != NULL); assert(ndpi_str != NULL);
NDPI_BITMASK_SET_ALL(all);
ndpi_set_protocol_detection_bitmask2(ndpi_str, &all); ndpi_set_protocol_detection_bitmask2(ndpi_str, &all);
ndpi_finalize_initalization(ndpi_str); ndpi_finalize_initalization(ndpi_str);
+2
View File
@@ -1,5 +1,7 @@
#!/bin/sh #!/bin/sh
cd "$(dirname "${0}")"
READER="valgrind -q --leak-check=full ../example/ndpiReader -p ../example/protos.txt -c ../example/categories.txt" READER="valgrind -q --leak-check=full ../example/ndpiReader -p ../example/protos.txt -c ../example/categories.txt"
RC=0 RC=0