mirror of
https://github.com/vel21ripn/nDPI.git
synced 2026-04-29 15:39:42 +00:00
Added missing check to prevent crashes
This commit is contained in:
parent
2234b97149
commit
6a1fd9ad97
1 changed files with 4 additions and 1 deletions
|
|
@ -3433,8 +3433,11 @@ void * processing_thread(void *_thread_id) {
|
|||
pcap_loop:
|
||||
runPcapLoop(thread_id);
|
||||
|
||||
pcap_close(ndpi_thread_info[thread_id].workflow->pcap_handle);
|
||||
if(ndpi_thread_info[thread_id].workflow->pcap_handle)
|
||||
pcap_close(ndpi_thread_info[thread_id].workflow->pcap_handle);
|
||||
|
||||
ndpi_thread_info[thread_id].workflow->pcap_handle = NULL;
|
||||
|
||||
if(playlist_fp[thread_id] != NULL) { /* playlist: read next file */
|
||||
char filename[256];
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue