Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
jami-daemon
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
savoirfairelinux
jami-daemon
Commits
b522d785
Commit
b522d785
authored
11 years ago
by
Tristan Matthews
Browse files
Options
Downloads
Patches
Plain Diff
sip: do NULL check before dereference
Refs #45344
parent
049d7b96
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
daemon/src/sip/sipvoiplink.cpp
+1
-4
1 addition, 4 deletions
daemon/src/sip/sipvoiplink.cpp
with
1 addition
and
4 deletions
daemon/src/sip/sipvoiplink.cpp
+
1
−
4
View file @
b522d785
...
@@ -2195,7 +2195,7 @@ void transaction_state_changed_cb(pjsip_inv_session * inv,
...
@@ -2195,7 +2195,7 @@ void transaction_state_changed_cb(pjsip_inv_session * inv,
pjsip_rx_data
*
r_data
=
event
->
body
.
tsx_state
.
src
.
rdata
;
pjsip_rx_data
*
r_data
=
event
->
body
.
tsx_state
.
src
.
rdata
;
// Get the message inside the transaction
// Get the message inside the transaction
if
(
!
r_data
->
msg_info
.
msg
->
body
)
if
(
!
r_data
or
!
r_data
->
msg_info
.
msg
->
body
)
return
;
return
;
const
char
*
formattedMsgPtr
=
static_cast
<
const
char
*>
(
r_data
->
msg_info
.
msg
->
body
->
data
);
const
char
*
formattedMsgPtr
=
static_cast
<
const
char
*>
(
r_data
->
msg_info
.
msg
->
body
->
data
);
...
@@ -2230,9 +2230,6 @@ void transaction_state_changed_cb(pjsip_inv_session * inv,
...
@@ -2230,9 +2230,6 @@ void transaction_state_changed_cb(pjsip_inv_session * inv,
Manager
::
instance
().
incomingMessage
(
call
->
getCallId
(),
from
,
findTextMessage
(
formattedMessage
));
Manager
::
instance
().
incomingMessage
(
call
->
getCallId
(),
from
,
findTextMessage
(
formattedMessage
));
if
(
!
event
->
body
.
tsx_state
.
src
.
rdata
)
return
;
// Respond with a 200/OK
// Respond with a 200/OK
sendOK
(
inv
->
dlg
,
r_data
,
tsx
);
sendOK
(
inv
->
dlg
,
r_data
,
tsx
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment