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
2cbe71c5
Commit
2cbe71c5
authored
Sep 11, 2013
by
Ghislain MARY
Browse files
Fix possible crash when generating presence xml.
parent
adef4bdb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
coreapi/presence.c
coreapi/presence.c
+5
-2
No files found.
coreapi/presence.c
View file @
2cbe71c5
...
...
@@ -1528,8 +1528,11 @@ static int write_xml_presence_service(xmlTextWriterPtr writer, LinphonePresenceS
err
=
xmlTextWriterWriteAttribute
(
writer
,
(
const
xmlChar
*
)
"priority"
,
(
const
xmlChar
*
)
"0.8"
);
}
if
(
err
>=
0
)
{
const
char
*
contact_str
=
service
->
contact
;
if
(
contact_str
==
NULL
)
contact_str
=
contact
;
const
char
*
contact_str
;
if
((
service
==
NULL
)
||
(
service
->
contact
==
NULL
))
contact_str
=
contact
;
else
contact_str
=
service
->
contact
;
err
=
xmlTextWriterWriteString
(
writer
,
(
const
xmlChar
*
)
contact_str
);
}
if
(
err
>=
0
)
{
...
...
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