Fixed thread crash caused by commit 29cd6ef994

This commit is contained in:
Luca
2017-04-19 09:50:54 +02:00
parent c1db9a830d
commit 56b6c7ed93
+1 -1
View File
@@ -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);