aboutsummaryrefslogtreecommitdiff
path: root/example/ndpiReader.c
diff options
context:
space:
mode:
authorLuca <deri@ntop.org>2017-04-19 09:50:54 +0200
committerLuca <deri@ntop.org>2017-04-19 09:50:54 +0200
commit56b6c7ed93b7fbdc1963200c208437c16fe5437f (patch)
treeb3f861b1b9390a0831e7005dca5f37cb08f8e260 /example/ndpiReader.c
parentc1db9a830d84281c146d9628c10620d7425ee009 (diff)
Fixed thread crash caused by commit 29cd6ef9942188633b79b5c1fe62360f048a6450
Diffstat (limited to 'example/ndpiReader.c')
-rw-r--r--example/ndpiReader.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/example/ndpiReader.c b/example/ndpiReader.c
index 9eab4500f..b0b21b2b3 100644
--- a/example/ndpiReader.c
+++ b/example/ndpiReader.c
@@ -1508,7 +1508,7 @@ void test_lib() {
}
/* Waiting for completion */
for(thread_id = 0; thread_id < num_threads; thread_id++) {
- status = pthread_join(ndpi_thread_info[thread_id].pthread, thd_res);
+ status = pthread_join(ndpi_thread_info[thread_id].pthread, &thd_res);
/* check pthreade_join return value */
if(status != 0) {
fprintf(stderr, "error on join %ld thread\n", thread_id);