Ticket #1955 (closed defect: fixed)

Opened 7 months ago

Last modified 7 months ago

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:

  1. Assertion in pjsip_resolve() because IPv6 transport types are not evaluated, so it gets into assertion block:
        pj_assert(!"Unknown transport type");
    
  2. 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

comment:1 Changed 7 months ago by nanang

  • Status changed from new to closed
  • Resolution set to fixed

In 5425:

Fixed #1955: Fixed assertions in DNS SRV resolution with IPv6 TCP/TLS target.

Note: See TracTickets for help on using tickets.