diff options
author | Luca Deri <lucaderi@users.noreply.github.com> | 2020-06-24 22:16:48 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-24 22:16:48 +0200 |
commit | 38c0d927a9a493b600872835ebcfa985410c0f7f (patch) | |
tree | 3f7f65f7e109b86c172cf7442eb1067f007dc862 | |
parent | 94a68451df9ce6b0beb7c1d9c8c82ecd7b5fd4d7 (diff) | |
parent | 39800c88fa9d72716ebb3fdb892c92cbac602a7e (diff) |
Merge pull request #925 from lnslbrty/fix/ndpi-rader-unitialized-values
Fixed unitialized values in ndpiReader protocol detection bitmask dur…
-rw-r--r-- | example/ndpiReader.c | 3 | ||||
-rwxr-xr-x | tests/vagrind_test.sh | 2 |
2 files changed, 4 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); diff --git a/tests/vagrind_test.sh b/tests/vagrind_test.sh index aa04dab40..01d76e6a4 100755 --- a/tests/vagrind_test.sh +++ b/tests/vagrind_test.sh @@ -1,5 +1,7 @@ #!/bin/sh +cd "$(dirname "${0}")" + READER="valgrind -q --leak-check=full ../example/ndpiReader -p ../example/protos.txt -c ../example/categories.txt" RC=0 |