mirror of
				https://github.com/asterisk/asterisk.git
				synced 2025-10-31 10:47:18 +00:00 
			
		
		
		
	res_pjsip_nat: Fix potential use of uninitialized transport details
The ast_sip_request_transport_details must be zero initialized,
otherwise this could lead to a SEGV.
Resolves: #509
(cherry picked from commit 85dd7cea8a)
			
			
This commit is contained in:
		
				
					committed by
					
						 Asterisk Development Team
						Asterisk Development Team
					
				
			
			
				
	
			
			
			
						parent
						
							4f4d997aa1
						
					
				
				
					commit
					3b26874eaa
				
			| @@ -319,8 +319,8 @@ static pj_status_t process_nat(pjsip_tx_data *tdata) | ||||
| { | ||||
| 	RAII_VAR(struct ast_sip_transport *, transport, NULL, ao2_cleanup); | ||||
| 	RAII_VAR(struct ast_sip_transport_state *, transport_state, NULL, ao2_cleanup); | ||||
| 	struct ast_sip_request_transport_details details = { 0, }; | ||||
| 	pjsip_via_hdr *via = NULL; | ||||
| 	struct ast_sip_request_transport_details details; | ||||
| 	struct ast_sockaddr addr = { { 0, } }; | ||||
| 	pjsip_sip_uri *uri = NULL; | ||||
| 	RAII_VAR(struct ao2_container *, hooks, NULL, ao2_cleanup); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user