mirror of
				https://git.kernel.org/pub/scm/network/wireless/iwd.git
				synced 2025-10-31 13:17:25 +01:00 
			
		
		
		
	mpdu: Update offset for authentication frames
Offset was not updated properly when validating authentication frames
This commit is contained in:
		
							parent
							
								
									a83dc52d50
								
							
						
					
					
						commit
						c3aef948db
					
				| @ -54,6 +54,8 @@ static bool validate_authentication_mgmt_mpdu(const struct mpdu *mpdu, | ||||
| 	if (len < *offset + 6) | ||||
| 		return false; | ||||
| 
 | ||||
| 	*offset += 6; | ||||
| 
 | ||||
| 	switch (mpdu->auth.algorithm) { | ||||
| 	case MPDU_AUTH_ALGO_OPEN_SYSTEM: | ||||
| 		return *offset <= len; | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Denis Kenzior
						Denis Kenzior