Commit ed2a8a97 authored by Mickaël Turnel's avatar Mickaël Turnel

Fix wrong socket closed in dual mode

parent 67114d45
Pipeline #324 failed with stage
in 0 seconds
File added
File added
......@@ -91,7 +91,7 @@ static int tunnel_channel_connect(belle_sip_channel_t *obj, const struct addrinf
static void tunnel_channel_close(belle_sip_channel_t *obj) {
belle_sip_tunnel_channel_t *chan = (belle_sip_tunnel_channel_t *)obj;
if (chan->tunnelsocket2 != NULL) {
tunnel_client_close_one_dir_socket(chan->tunnelclient, chan->tunnelsocket);
tunnel_client_close_one_dir_socket(chan->tunnelclient, chan->tunnelsocket2);
chan->tunnelsocket2 = NULL;
if (chan->tunnelsocket != NULL) {
tunnel_client_close_one_dir_socket(chan->tunnelclient, chan->tunnelsocket);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment