mirror of
				https://github.com/smaeul/u-boot.git
				synced 2025-11-04 05:50:17 +00:00 
			
		
		
		
	Initialize SHA buffer size var in passwd_abort
The call to hash_block in passwd_abort fails with error ENOSPC on some systems. The reason is that the variable which specifies the size of the buffer to contain the computed hash does not get initialized. This patch initializes the variable with the size of the buffer. Signed-off-by: Martin Etnestad <martin.etnestad@appeartv.com>
This commit is contained in:
		
							parent
							
								
									5b893baf08
								
							
						
					
					
						commit
						2d06fd839d
					
				@ -57,7 +57,7 @@ static int passwd_abort(uint64_t etime)
 | 
			
		||||
	const char *algo_name = "sha256";
 | 
			
		||||
	u_int presskey_len = 0;
 | 
			
		||||
	int abort = 0;
 | 
			
		||||
	int size;
 | 
			
		||||
	int size = sizeof(sha);
 | 
			
		||||
	int ret;
 | 
			
		||||
 | 
			
		||||
	if (sha_env_str == NULL)
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user