mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-02 02:18:31 +00:00
pjsip_distributor.c: Fix off-nominal tdata ref leak.
Change-Id: I571f371d0956a8039b197b4dbd8af6b18843598d
This commit is contained in:
@@ -729,8 +729,7 @@ static pj_bool_t authenticate(pjsip_rx_data *rdata)
|
|||||||
ao2_ref(unid, -1);
|
ao2_ref(unid, -1);
|
||||||
}
|
}
|
||||||
ast_sip_report_auth_success(endpoint, rdata);
|
ast_sip_report_auth_success(endpoint, rdata);
|
||||||
pjsip_tx_data_dec_ref(tdata);
|
break;
|
||||||
return PJ_FALSE;
|
|
||||||
case AST_SIP_AUTHENTICATION_FAILED:
|
case AST_SIP_AUTHENTICATION_FAILED:
|
||||||
log_failed_request(rdata, "Failed to authenticate", 0, 0);
|
log_failed_request(rdata, "Failed to authenticate", 0, 0);
|
||||||
ast_sip_report_auth_failed_challenge_response(endpoint, rdata);
|
ast_sip_report_auth_failed_challenge_response(endpoint, rdata);
|
||||||
@@ -743,6 +742,7 @@ static pj_bool_t authenticate(pjsip_rx_data *rdata)
|
|||||||
pjsip_endpt_respond_stateless(ast_sip_get_pjsip_endpoint(), rdata, 500, NULL, NULL, NULL);
|
pjsip_endpt_respond_stateless(ast_sip_get_pjsip_endpoint(), rdata, 500, NULL, NULL, NULL);
|
||||||
return PJ_TRUE;
|
return PJ_TRUE;
|
||||||
}
|
}
|
||||||
|
pjsip_tx_data_dec_ref(tdata);
|
||||||
}
|
}
|
||||||
|
|
||||||
return PJ_FALSE;
|
return PJ_FALSE;
|
||||||
|
Reference in New Issue
Block a user