mirror of
				https://github.com/asterisk/asterisk.git
				synced 2025-10-31 02:37:10 +00:00 
			
		
		
		
	chan_sip: Check that an iostream exists before accessing.
Before getting the file descriptor for an iostream check that it is present. ASTERISK-27534 Change-Id: Ie0aa1394007a37c30e337ea1176a6fb3a63bc99c
This commit is contained in:
		
				
					committed by
					
						 Corey Farrell
						Corey Farrell
					
				
			
			
				
	
			
			
			
						parent
						
							8a6febd980
						
					
				
				
					commit
					6d5f4768a4
				
			| @@ -29450,7 +29450,7 @@ static int sip_prepare_socket(struct sip_pvt *p) | ||||
| 		return s->fd; | ||||
| 	} | ||||
| 	if ((s->type & (AST_TRANSPORT_TCP | AST_TRANSPORT_TLS)) && | ||||
| 			s->tcptls_session) { | ||||
| 			s->tcptls_session && s->tcptls_session->stream) { | ||||
| 		return ast_iostream_get_fd(s->tcptls_session->stream); | ||||
| 	} | ||||
| 	if ((s->type & (AST_TRANSPORT_WS | AST_TRANSPORT_WSS))) { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user