mirror of
				https://github.com/asterisk/asterisk.git
				synced 2025-10-31 02:37:10 +00:00 
			
		
		
		
	Merge "res_pjsip_transport_websocket: Add NULL check in get_write_timeout"
This commit is contained in:
		| @@ -302,10 +302,14 @@ static int get_write_timeout(void) | ||||
|  | ||||
| 		for (; (transport_state = ao2_iterator_next(&it_transport_states)); ao2_cleanup(transport_state)) { | ||||
| 			struct ast_sip_transport *transport; | ||||
|  | ||||
| 			if (transport_state->type != AST_TRANSPORT_WS && transport_state->type != AST_TRANSPORT_WSS) { | ||||
| 				continue; | ||||
| 			} | ||||
| 			transport = ast_sorcery_retrieve_by_id(ast_sip_get_sorcery(), "transport", transport_state->id); | ||||
| 			if (!transport) { | ||||
| 				continue; | ||||
| 			} | ||||
| 			ast_debug(5, "Found %s transport with write timeout: %d\n", | ||||
| 				transport->type == AST_TRANSPORT_WS ? "WS" : "WSS", | ||||
| 				transport->write_timeout); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user