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
belle-sip
Commits
4aa1a811
Commit
4aa1a811
authored
May 06, 2013
by
Simon Morlat
Browse files
fix tls_channel bug in case of network error
parent
8f0f1635
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/transports/tls_channel_polarssl.c
View file @
4aa1a811
...
...
@@ -49,7 +49,7 @@ static void tls_channel_close(belle_sip_tls_channel_t *obj){
static
void
tls_channel_uninit
(
belle_sip_tls_channel_t
*
obj
){
belle_sip_socket_t
sock
=
belle_sip_source_get_socket
((
belle_sip_source_t
*
)
obj
);
if
(
sock
!=-
1
)
if
(
sock
!=
(
belle_sip_socket_t
)
-
1
)
tls_channel_close
(
obj
);
ssl_free
(
&
obj
->
sslctx
);
x509_free
(
&
obj
->
root_ca
);
...
...
@@ -138,9 +138,10 @@ static int tls_process_data(belle_sip_channel_t *obj,unsigned int revents){
}
}
else
if
(
obj
->
state
==
BELLE_SIP_CHANNEL_READY
)
{
belle_sip_channel_process_data
(
obj
,
revents
);
return
belle_sip_channel_process_data
(
obj
,
revents
);
}
else
{
belle_sip_warning
(
"Unexpected event [%i], for channel [%p]"
,
revents
,
channel
);
return
BELLE_SIP_STOP
;
}
return
BELLE_SIP_CONTINUE
;
...
...
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