Browse Source

qcacmn: Check length in wlan_crypto_rsnie_check

Check length of rsn ie in wlan_crypto_rsnie_check

Change-Id: I66726a31c2f4c16cf66460cc15c62f2089a20de5
Rohan Dutta 7 years ago
parent
commit
f8ce8100ea
1 changed files with 1 additions and 1 deletions
  1. 1 1
      umac/cmn_services/crypto/src/wlan_crypto_global_api.c

+ 1 - 1
umac/cmn_services/crypto/src/wlan_crypto_global_api.c

@@ -1910,7 +1910,7 @@ QDF_STATUS wlan_crypto_rsnie_check(struct wlan_crypto_params *crypto_params,
 	if (len < 14)
 		return QDF_STATUS_E_INVAL;
 
-	frm += 2, len -= 2;
+	frm += 2;
 	/* NB: iswapoui already validated the OUI and type */
 	w = LE_READ_2(frm);
 	if (w != RSN_VERSION)