1
0
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:
Gustavo Garcia 2022-08-01 00:14:56 +02:00
commit d25a1e8c6b
No known key found for this signature in database
GPG Key ID: B5D049293A189652

View File

@ -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;