Skip to content

Commit 82e242e

Browse files
committed
[tm] fix access to un-allocated branch
Reported and fixed by @vladpaiu
1 parent c0423d0 commit 82e242e

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

modules/tm/async.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,8 @@ int t_resume_async_request(int fd, void*param, int was_timeout)
131131
backup_list = set_avp_list( &t->user_avps );
132132
/* set default send address to the saved value */
133133
backup_si = bind_address;
134-
bind_address = TM_BRANCH( t, 0).request.dst.send_sock;
134+
bind_address =
135+
t->nr_of_outgoings ? TM_BRANCH( t, 0).request.dst.send_sock : NULL;
135136

136137
async_status = ASYNC_DONE; /* assume default status as done */
137138
/* call the resume function in order to read and handle data */

0 commit comments

Comments
 (0)