Skip to content

Commit

Permalink
sip/transp: add fallback addr
Browse files Browse the repository at this point in the history
  • Loading branch information
sreimers committed Nov 6, 2023
1 parent a4c0656 commit 82c456c
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion src/sip/transp.c
Original file line number Diff line number Diff line change
Expand Up @@ -792,8 +792,18 @@ static int conn_send(struct sip_connqent **qentp, struct sip *sip, bool secure,
if (err)
goto out;

if (connh)
/* Fallback check for any address win32 */
if (!sa_isset(&conn->laddr, SA_ALL)) {
err = sip_transp_laddr(sip, &conn->laddr, conn->tp, dst);
if (err)
goto out;
}

if (connh) {
err = connh(&conn->laddr, dst, mb, arg);
if (err)
goto out;
}

(void)tcp_conn_settos(conn->tc, sip->tos);
#ifdef USE_TLS
Expand Down

0 comments on commit 82c456c

Please sign in to comment.