mirror of
				https://github.com/clearml/dropbear
				synced 2025-06-26 18:17:32 +00:00 
			
		
		
		
	BUG: The strings 'name' and 'instruction' are always allocated
but are only freed if the length of the string is greater then zero. They should always be freed. FIX: take the m_free(<string>) out of the conditional From Erik Hovland --HG-- extra : convert_revision : 13227a7365411821cb194fb45ccb23a9b9fb98cc
This commit is contained in:
		
							parent
							
								
									934a6d417d
								
							
						
					
					
						commit
						cee2ec1680
					
				| @ -99,13 +99,14 @@ void recv_msg_userauth_info_request() { | ||||
| 	if (strlen(name) > 0) { | ||||
| 		cleantext(name); | ||||
| 		fprintf(stderr, "%s", name); | ||||
| 		m_free(name); | ||||
| 	} | ||||
| 	m_free(name); | ||||
| 
 | ||||
| 	if (strlen(instruction) > 0) { | ||||
| 		cleantext(instruction); | ||||
| 		fprintf(stderr, "%s", instruction); | ||||
| 		m_free(instruction); | ||||
| 	} | ||||
| 	m_free(instruction); | ||||
| 
 | ||||
| 	for (i = 0; i < num_prompts; i++) { | ||||
| 		unsigned int response_len = 0; | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user