Message ID | 20200210081354.10390-1-markus.theil@tu-ilmenau.de (mailing list archive) |
---|---|
State | Accepted |
Delegated to: | Johannes Berg |
Headers | show |
Series | [1/2] iw: scan: fix if scope for print_measurement_pilot_tx() | expand |
diff --git a/scan.c b/scan.c index 8f8d8ba..7155cdf 100644 --- a/scan.c +++ b/scan.c @@ -1561,9 +1561,10 @@ static void print_measurement_pilot_tx(const uint8_t type, uint8_t len, p[0], p[1], p[2]); len_remaining -= 3; - if (len > len_remaining) + if (len > len_remaining) { printf(" <Parse error, element too short>\n"); return; + } while (p < p + len) printf(" %.2x", *p);
Signed-off-by: Markus Theil <markus.theil@tu-ilmenau.de> --- scan.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)