Skip to content

Commit

Permalink
siptrace: don't calculate message source socket if already set
Browse files Browse the repository at this point in the history
  • Loading branch information
grumvalski committed Jan 16, 2019
1 parent 38a696f commit 929a24f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/modules/siptrace/siptrace.c
Expand Up @@ -1493,7 +1493,10 @@ int siptrace_net_data_send(sr_event_param_t *evp)
return -1;

new_dst = *nd->dst;
new_dst.send_sock = get_send_socket(0, &nd->dst->to, nd->dst->proto);

if(new_dst.send_sock == 0) {
new_dst.send_sock = get_send_socket(0, &nd->dst->to, nd->dst->proto);
}

memset(&sto, 0, sizeof(siptrace_data_t));

Expand Down

0 comments on commit 929a24f

Please sign in to comment.