]> git.ipfire.org Git - thirdparty/iw.git/commitdiff
connect: Fix parsing of PSK
authorIlan Peer <ilan.peer@intel.com>
Wed, 20 Jun 2018 06:22:23 +0000 (09:22 +0300)
committerJohannes Berg <johannes.berg@intel.com>
Thu, 11 Oct 2018 10:30:10 +0000 (12:30 +0200)
Commit cdef5f1f7d40 ("[BUGFIX] connect: fix parsing of WEP keys")
missed updating 'argc' and 'argv' at the end of PSK processing.
Fix it.

Signed-off-by: Ilan Peer <ilan.peer@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
util.c

diff --git a/util.c b/util.c
index 796549eab444cc4470b862bde1dbb9effe94e6f3..388a8bbefc3fecc868816ad46e3727f205ebb95b 100644 (file)
--- a/util.c
+++ b/util.c
@@ -481,6 +481,8 @@ int parse_keys(struct nl_msg *msg, char **argv, int argc)
 
                NLA_PUT_U32(msg, NL80211_ATTR_CIPHER_SUITE_GROUP, cipher_suite);
 
+               *argv += 1;
+               *argc -= 1;
                return 0;
        }