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
b5addf95
Commit
b5addf95
authored
Apr 30, 2013
by
Simon Morlat
Browse files
fix crash when receiving an incorrect SDP message in a 200Ok.
fix indentation
parent
24186bff
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
11 deletions
+12
-11
coreapi/callbacks.c
coreapi/callbacks.c
+2
-1
coreapi/sal_eXosip2_presence.c
coreapi/sal_eXosip2_presence.c
+10
-10
No files found.
coreapi/callbacks.c
View file @
b5addf95
...
...
@@ -351,7 +351,8 @@ static void call_accepted(SalOp *op){
#endif //BUILD_UPNP
md
=
sal_call_get_final_media_description
(
op
);
call
->
params
.
has_video
&=
linphone_core_media_description_contains_video_stream
(
md
);
if
(
md
)
call
->
params
.
has_video
&=
linphone_core_media_description_contains_video_stream
(
md
);
if
(
call
->
state
==
LinphoneCallOutgoingProgress
||
call
->
state
==
LinphoneCallOutgoingRinging
||
...
...
coreapi/sal_eXosip2_presence.c
View file @
b5addf95
...
...
@@ -85,19 +85,19 @@ static const char *days[]={"Sun","Mon","Tue","Wed","Thu","Fri","Sat"};
static
const
char
*
months
[]
=
{
"Jan"
,
"Feb"
,
"Mar"
,
"Apr"
,
"May"
,
"Jun"
,
"Jul"
,
"Aug"
,
"Sep"
,
"Oct"
,
"Nov"
,
"Dec"
};
static
void
msg_add_current_date
(
osip_message_t
*
msg
){
char
tmp
[
64
]
=
{
0
};
time_t
curtime
=
time
(
NULL
);
struct
tm
*
ret
;
char
tmp
[
64
]
=
{
0
};
time_t
curtime
=
time
(
NULL
);
struct
tm
*
ret
;
#ifndef WIN32
struct
tm
gmt
;
ret
=
gmtime_r
(
&
curtime
,
&
gmt
);
struct
tm
gmt
;
ret
=
gmtime_r
(
&
curtime
,
&
gmt
);
#else
ret
=
gmtime
(
&
curtime
);
ret
=
gmtime
(
&
curtime
);
#endif
/*cannot use strftime because it is locale dependant*/
snprintf
(
tmp
,
sizeof
(
tmp
)
-
1
,
"%s, %i %s %i %02i:%02i:%02i GMT"
,
days
[
ret
->
tm_wday
],
ret
->
tm_mday
,
months
[
ret
->
tm_mon
],
1900
+
ret
->
tm_year
,
ret
->
tm_hour
,
ret
->
tm_min
,
ret
->
tm_sec
);
osip_message_replace_header
(
msg
,
"Date"
,
tmp
);
/*cannot use strftime because it is locale dependant*/
snprintf
(
tmp
,
sizeof
(
tmp
)
-
1
,
"%s, %i %s %i %02i:%02i:%02i GMT"
,
days
[
ret
->
tm_wday
],
ret
->
tm_mday
,
months
[
ret
->
tm_mon
],
1900
+
ret
->
tm_year
,
ret
->
tm_hour
,
ret
->
tm_min
,
ret
->
tm_sec
);
osip_message_replace_header
(
msg
,
"Date"
,
tmp
);
}
...
...
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