mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-04 03:50:31 +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
This commit is contained in:
committed by
asterisk-org-access-app[bot]
parent
58b16a538d
commit
14bd1ceef6
@@ -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