HTTP, Bittorrent, Kerberos: fix stopping of extra dissection (#1700)
The return value of the extra-dissection callback indicates if the extra dissection needs to be called again. In the HTTP cose, this setting to NULL of the callabck is wrong since we stop extra dissection only if we have a hostname *and* a return code.
This commit is contained in:
@@ -54,7 +54,7 @@ static int search_bittorrent_again(struct ndpi_detection_module_struct *ndpi_str
|
||||
ndpi_search_bittorrent_hash(ndpi_struct, flow, -1);
|
||||
|
||||
/* Possibly more processing */
|
||||
return(1);
|
||||
return flow->extra_packets_func != NULL;
|
||||
}
|
||||
|
||||
/* *********************************************** */
|
||||
|
||||
Reference in New Issue
Block a user