mirror of
				https://github.com/clearml/dropbear
				synced 2025-06-26 18:17:32 +00:00 
			
		
		
		
	- Fix minor leak
This commit is contained in:
		
							parent
							
								
									ff5d94a7a4
								
							
						
					
					
						commit
						f403c1f18b
					
				| @ -56,11 +56,7 @@ pamConvFunc(int num_msg, | ||||
| 	struct UserDataS* userDatap = (struct UserDataS*) appdata_ptr; | ||||
| 	unsigned int msg_len = 0; | ||||
| 	unsigned int i = 0; | ||||
| 
 | ||||
| 	const char* message = (*msg)->msg; | ||||
| 
 | ||||
| 	/* make a copy we can strip */ | ||||
| 	char * compare_message = m_strdup(message); | ||||
| 	char * compare_message = NULL; | ||||
| 
 | ||||
| 	TRACE(("enter pamConvFunc")) | ||||
| 
 | ||||
| @ -71,15 +67,10 @@ pamConvFunc(int num_msg, | ||||
| 		dropbear_log(LOG_INFO, "pamConvFunc() called with >1 messages: not supported."); | ||||
| 		return PAM_CONV_ERR; | ||||
| 	} | ||||
| 
 | ||||
| 	/* make a copy we can strip */ | ||||
| 	compare_message = m_strdup((*msg)->msg); | ||||
| 	 | ||||
| 	TRACE(("msg_style is %d", (*msg)->msg_style)) | ||||
| 	if (compare_message) { | ||||
| 		TRACE(("message is '%s'", compare_message)) | ||||
| 	} else { | ||||
| 		TRACE(("null message")) | ||||
| 	} | ||||
| 
 | ||||
| 
 | ||||
| 	/* Make the string lowercase. */ | ||||
| 	msg_len = strlen(compare_message); | ||||
| 	for (i = 0; i < msg_len; i++) { | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user