mirror of
https://github.com/coturn/coturn.git
synced 2025-10-29 22:11:11 +01:00
Merge branch 'AlexNedo-fix-use-after-free'
This commit is contained in:
commit
d25a1e8c6b
@ -2757,8 +2757,8 @@ void close_ioa_socket_after_processing_if_necessary(ioa_socket_handle s)
|
||||
{
|
||||
tcp_connection *tc = s->sub_session;
|
||||
if (tc) {
|
||||
delete_tcp_connection(tc);
|
||||
s->sub_session = NULL;
|
||||
delete_tcp_connection(tc);
|
||||
}
|
||||
}
|
||||
break;
|
||||
@ -2945,8 +2945,8 @@ static void eventcb_bev(struct bufferevent *bev, short events, void *arg)
|
||||
{
|
||||
tcp_connection *tc = s->sub_session;
|
||||
if (tc) {
|
||||
delete_tcp_connection(tc);
|
||||
s->sub_session = NULL;
|
||||
delete_tcp_connection(tc);
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user