mirror of
https://git.jami.net/savoirfairelinux/jami-daemon.git
synced 2025-08-07 22:02:12 +08:00
sipaccount: check nullptr
Change-Id: I8c899f31e29bc7a50989afc69518accbf2935428
This commit is contained in:

committed by
Adrien Béraud

parent
d5eaf363c8
commit
610e969780
@ -1214,7 +1214,8 @@ SIPAccount::sendUnregister()
|
||||
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);
|
||||
|
||||
pj_status_t status;
|
||||
if ((status = pjsip_regc_send(regc, tdata)) != PJ_SUCCESS) {
|
||||
|
Reference in New Issue
Block a user