tshark: fix activation of heuristic dissectors by command line

Change-Id: I9499be0d0efd24ce1049513171c657795fa69250
Reviewed-on: https://code.wireshark.org/review/18823
Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
This commit is contained in:
Pascal Quantin 2016-11-14 21:55:25 +01:00
parent 67385b184c
commit dc2645217e
1 changed files with 2 additions and 2 deletions

View File

@ -1630,9 +1630,9 @@ main(int argc, char *argv[])
}
}
if(global_dissect_options.disable_heur_slist) {
if(global_dissect_options.enable_heur_slist) {
GSList *heur_enable;
for (heur_enable = global_dissect_options.disable_heur_slist; heur_enable != NULL; heur_enable = g_slist_next(heur_enable))
for (heur_enable = global_dissect_options.enable_heur_slist; heur_enable != NULL; heur_enable = g_slist_next(heur_enable))
{
proto_enable_heuristic_by_name((char*)heur_enable->data, TRUE);
}