Opened 8 years ago
Closed 8 years ago
#1955 closed defect (fixed)
Assertions in DNS SRV resolution with IPv6 TCP/TLS target
Reported by: | nanang | Owned by: | bennylp |
---|---|---|---|
Priority: | normal | Milestone: | release-2.6 |
Component: | pjsip | Version: | trunk |
Keywords: | Cc: | ||
Backport to 1.x milestone: | Backported: | no |
Description
There are two assertion issues:
- Assertion in pjsip_resolve() because IPv6 transport types are not evaluated, so it gets into assertion block:
pj_assert(!"Unknown transport type");
- After above issue fixed, another assertion occurs in creating the SIP transport TCP/TLS because address family is IPv6 but address length is IPv4:
PJ_ASSERT_RETURN((rem_addr->addr.sa_family == pj_AF_INET() && addr_len == sizeof(pj_sockaddr_in)) || (rem_addr->addr.sa_family == pj_AF_INET6() && addr_len == sizeof(pj_sockaddr_in6)), PJ_EINVAL);
Thanks Alexander Traud for the report.
Change History (1)
comment:1 Changed 8 years ago by nanang
- Resolution set to fixed
- Status changed from new to closed
Note: See
TracTickets for help on using
tickets.
In 5425: