aboutsummaryrefslogtreecommitdiff
path: root/example/ndpiReader.c
diff options
context:
space:
mode:
authorToni Uhlig <matzeton@googlemail.com>2020-06-23 17:15:44 +0200
committerToni Uhlig <matzeton@googlemail.com>2020-06-23 17:23:56 +0200
commit39800c88fa9d72716ebb3fdb892c92cbac602a7e (patch)
tree5d25aa6a8c0a97aab73695db9bd6b15657b2beb3 /example/ndpiReader.c
parentd9af1562f00d2b9ac9fe5f4e745a84164656fea1 (diff)
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>
Diffstat (limited to 'example/ndpiReader.c')
-rw-r--r--example/ndpiReader.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/example/ndpiReader.c b/example/ndpiReader.c
index a6b9ed992..a24756c7d 100644
--- a/example/ndpiReader.c
+++ b/example/ndpiReader.c
@@ -3141,7 +3141,8 @@ static void dgaUnitTest() {
struct ndpi_detection_module_struct *ndpi_str = ndpi_init_detection_module(ndpi_no_prefs);
assert(ndpi_str != NULL);
-
+
+ NDPI_BITMASK_SET_ALL(all);
ndpi_set_protocol_detection_bitmask2(ndpi_str, &all);
ndpi_finalize_initalization(ndpi_str);