Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
BC
public
external
sofia-sip
Commits
adba7741
Commit
adba7741
authored
Apr 23, 2008
by
Pekka Pessi
Browse files
nua_notifier.c: fixed crash with event fetch
darcs-hash:20080423183007-70aaf-ccfc14d89f6e275b2a7f8292f0d0c16565534a2e.gz
parent
a0b7b11e
Changes
1
Hide whitespace changes
Inline
Side-by-side
libsofia-sip-ua/nua/nua_notifier.c
View file @
adba7741
...
...
@@ -340,7 +340,8 @@ int nua_subscribe_server_report(nua_server_request_t *sr, tagi_t const *tags)
{
nua_handle_t
*
nh
=
sr
->
sr_owner
;
nua_dialog_state_t
*
ds
=
nh
->
nh_ds
;
struct
notifier_usage
*
nu
=
nua_dialog_usage_private
(
sr
->
sr_usage
);
nua_dialog_usage_t
*
du
=
sr
->
sr_usage
;
struct
notifier_usage
*
nu
=
nua_dialog_usage_private
(
du
);
enum
nua_substate
substate
=
nua_substate_terminated
;
int
notify
=
0
;
int
retval
;
...
...
@@ -365,16 +366,18 @@ int nua_subscribe_server_report(nua_server_request_t *sr, tagi_t const *tags)
else
#endif
notify
=
1
;
notify
=
notify
&&
du
->
du_cr
!=
NULL
;
}
retval
=
nua_base_server_treport
(
sr
,
NUTAG_SUBSTATE
(
substate
),
TAG_END
());
if
(
retval
>=
2
||
n
u
==
NULL
)
if
(
retval
>=
2
||
d
u
==
NULL
)
return
retval
;
if
(
notify
)
{
/* Send NOTIFY (and terminate subscription, when needed) */
nua_dialog_usage_refresh
(
nh
,
ds
,
sr
->
sr_usage
,
sip_now
());
nua_dialog_usage_refresh
(
nh
,
ds
,
du
,
sip_now
());
}
return
retval
;
...
...
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