Skip to content

Commit

Permalink
restore via port
Browse files Browse the repository at this point in the history
  • Loading branch information
sreimers committed Nov 6, 2023
1 parent 82c456c commit a0606b4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/sip/transp.c
Original file line number Diff line number Diff line change
Expand Up @@ -794,9 +794,13 @@ static int conn_send(struct sip_connqent **qentp, struct sip *sip, bool secure,

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

if (port)
sa_set_port(&conn->laddr, port);
}

if (connh) {
Expand Down

0 comments on commit a0606b4

Please sign in to comment.