Explorar o código

qcacmn: Check length in wlan_crypto_rsnie_check

Check length of rsn ie in wlan_crypto_rsnie_check

Change-Id: I66726a31c2f4c16cf66460cc15c62f2089a20de5
Rohan Dutta %!s(int64=7) %!d(string=hai) anos
pai
achega
f8ce8100ea
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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)