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
liblinphone
Commits
2f3c2491
Commit
2f3c2491
authored
Feb 04, 2016
by
jehan
Browse files
fix crash when notification timeout is received
parent
72ff7c93
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
coreapi/bellesip_sal/sal_op_publish.c
coreapi/bellesip_sal/sal_op_publish.c
+1
-1
coreapi/presence.c
coreapi/presence.c
+1
-1
No files found.
coreapi/bellesip_sal/sal_op_publish.c
View file @
2f3c2491
...
...
@@ -32,7 +32,7 @@ static void publish_refresher_listener (belle_sip_refresher_t* refresher
}
else
if
(status_code>=200)
{
belle_sip_header_t
*sip_etag
;
const
char
*sip_etag_string
=
NULL
;
if
((sip_etag
=
belle_sip_message_get_header(BELLE_SIP_MESSAGE(response),
"SIP-ETag")))
{
if
(
response
&&
(sip_etag
=
belle_sip_message_get_header(BELLE_SIP_MESSAGE(response),
"SIP-ETag")))
{
sip_etag_string
=
belle_sip_header_get_unparsed_value(sip_etag)
;
}
sal_op_set_entity_tag(op,
sip_etag_string)
;
...
...
coreapi/presence.c
View file @
2f3c2491
...
...
@@ -1460,7 +1460,7 @@ static LinphonePresenceModel * process_pidf_xml_presence_notification(xmlparsing
void
linphone_core_add_subscriber
(
LinphoneCore
*
lc
,
const
char
*
subscriber
,
SalOp
*
op
){
LinphoneFriend
*fl=linphone_friend_
new_
with_address(subscriber)
;
LinphoneFriend
*fl=linphone_
core_create_
friend_with_address(
lc,
subscriber)
;
char
*tmp
;
if
(fl==NULL)
return
;
...
...
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