Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
savoirfairelinux
jami-daemon
Commits
a0d9ced0
Commit
a0d9ced0
authored
Apr 19, 2012
by
Tristan Matthews
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* #9847: check pointer before using it
parent
e9784530
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
daemon/src/sip/sipvoiplink.cpp
daemon/src/sip/sipvoiplink.cpp
+5
-5
No files found.
daemon/src/sip/sipvoiplink.cpp
View file @
a0d9ced0
...
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment