]> git.ipfire.org Git - thirdparty/iw.git/blobdiff - mgmt.c
update nl80211.h
[thirdparty/iw.git] / mgmt.c
diff --git a/mgmt.c b/mgmt.c
index 88fe3fd25b2d3dee0f8fc4359bdce17dbddf06a3..338435d41d0e5e76907618d82ddfdec08592194a 100644 (file)
--- a/mgmt.c
+++ b/mgmt.c
@@ -109,6 +109,8 @@ static int handle_mgmt_dump(struct nl80211_state *state,
        for (i = 3; i < argc; i += 3) {
                if (strcmp(argv[i], "count") == 0) {
                        count = 1 + atoi(argv[i + 1]);
+                       if (count < 1)
+                               count = 1;
                        break;
                }