diff --git a/hcxdumptool.c b/hcxdumptool.c index 3183acbc1..db03045b5 100644 --- a/hcxdumptool.c +++ b/hcxdumptool.c @@ -3991,7 +3991,8 @@ for(i = 0; i < INTERFACELIST_MAX -1; i++) ifpresentlistcounter++; } if(rt_get_interfacelist() == false) return false; -if(ifpresentlistcounter == 0) return false; + +if(ifpresentlist->index == 0) return false; qsort(ifpresentlist, ifpresentlistcounter, INTERFACELIST_SIZE, sort_interfacelist_by_index); return true; }