From 295fa884fe2a01d2437d96b5b39cfbcfa4e17be9 Mon Sep 17 00:00:00 2001 From: = <=> Date: Fri, 6 Sep 2024 17:40:33 +0200 Subject: [PATCH] fixed copy and paste error --- hcxpcapngtool.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hcxpcapngtool.c b/hcxpcapngtool.c index 11f7dea5c..43089901e 100644 --- a/hcxpcapngtool.c +++ b/hcxpcapngtool.c @@ -4753,7 +4753,7 @@ if((rth->it_present & IEEE80211_RADIOTAP_FLAGS) == IEEE80211_RADIOTAP_FLAGS) if((rth->it_present & IEEE80211_RADIOTAP_RATE) == IEEE80211_RADIOTAP_RATE) pf += 1; if((rth->it_present & IEEE80211_RADIOTAP_CHANNEL) == IEEE80211_RADIOTAP_CHANNEL) { - if(pf > caplen) false; + if(pf > caplen) return false; if((pf %2) != 0) pf += 1; frequency = (capptr[pf +1] << 8) + capptr[pf]; usedfrequency[frequency] += 1;