Skip to content

Commit 4940161

Browse files
Assigning socket correctly
1 parent 9512e8d commit 4940161

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

modules/topology_hiding/th_no_dlg_logic.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1438,8 +1438,10 @@ static int th_no_dlg_seq_handling(struct sip_msg *msg, str *info, decode_info_fn
14381438

14391439
param = NULL;
14401440

1441-
if (!sock) {
1442-
sock = msg->force_send_socket;
1441+
if (sock != NULL) {
1442+
msg->force_send_socket = sock;
1443+
} else {
1444+
LM_WARN("Socket is NULL, using default ingress socket\n");
14431445
}
14441446

14451447
one_way_hiding = th_no_dlg_one_way_hiding(sock);

modules/topology_hiding/topology_hiding.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -568,8 +568,4 @@ static int pv_topo_decoded_contact(struct sip_msg *msg, pv_param_t *param, pv_va
568568
return pv_get_null(msg, param, res);
569569

570570
return pv_topo_decoded_uri(msg, param, res, 0);
571-
<<<<<<< HEAD
572571
}
573-
=======
574-
}
575-
>>>>>>> 76e1a95621 (Ported user changes)

0 commit comments

Comments
 (0)