Commit a0d9ced0 authored by Tristan Matthews's avatar Tristan Matthews

* #9847: check pointer before using it

parent e9784530
......@@ -1551,6 +1551,11 @@ void update_contact_header(pjsip_regc_cbparam *param, SIPAccount *account)
void registration_cb(pjsip_regc_cbparam *param)
{
if (param == NULL) {
ERROR("SipVoipLink: registration callback parameter is NULL");
return;
}
SIPAccount *account = static_cast<SIPAccount *>(param->token);
if (account == NULL) {
......@@ -1558,11 +1563,6 @@ void registration_cb(pjsip_regc_cbparam *param)
return;
}
if (param == NULL) {
ERROR("SipVoipLink: registration callback parameter is NULL");
return;
}
if (account->isContactUpdateEnabled())
update_contact_header(param, account);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment