Skip to content
Snippets Groups Projects
Unverified Commit e5a449d6 authored by Sébastien Blin's avatar Sébastien Blin
Browse files

sipaccount: fix potential null dereference

Detected by sonarqube

Change-Id: I606f9cf2458dda07471d0a67af8915c7ca13d410
parent 08ef8dd8
No related branches found
No related tags found
No related merge requests found
......@@ -789,7 +789,8 @@ SIPAccount::sendRegister()
if (pjsip_regc_set_transport(regc, &tp_sel) != PJ_SUCCESS)
throw VoipLinkException("Unable to set transport");
setUpTransmissionData(tdata, tp_sel.u.transport->key.type);
if (tp_sel.u.transport)
setUpTransmissionData(tdata, tp_sel.u.transport->key.type);
// pjsip_regc_send increment the transport ref count by one,
if ((status = pjsip_regc_send(regc, tdata)) != PJ_SUCCESS) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment