Changeset 6021


Ignore:
Timestamp:
May 31, 2019 10:13:40 AM (4 months ago)
Author:
riza
Message:

Re #2147 (misc): Fix failed pjsip-test (transport_loop_test) caused by r6002.

Location:
pjproject/trunk/pjsip/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/src/pjsip/sip_transport.c

    r6002 r6021  
    12231223    pj_lock_release(mgr->lock); 
    12241224 
    1225     TRACE_((THIS_FILE,"Transport %s registered: type=%s, remote=%s:%d", 
    1226                        tp->obj_name, 
    1227                        pjsip_transport_get_type_name(tp->key.type), 
    1228                        addr_string(&tp->key.rem_addr), 
    1229                        pj_sockaddr_get_port(&tp->key.rem_addr))); 
     1225    TRACE_((THIS_FILE, "Transport %s registered: type=%s, remote=%s:%d", 
     1226            tp->obj_name, 
     1227            pjsip_transport_get_type_name(tp->key.type), 
     1228            pj_sockaddr_has_addr(&tp->key.rem_addr)? 
     1229                                addr_string(&tp->key.rem_addr):"", 
     1230            pj_sockaddr_has_addr(&tp->key.rem_addr)? 
     1231                                pj_sockaddr_get_port(&tp->key.rem_addr):0)); 
    12301232 
    12311233    return PJ_SUCCESS; 
  • pjproject/trunk/pjsip/src/pjsip/sip_transport_loop.c

    r6002 r6021  
    377377        goto on_error; 
    378378    loop->base.key.type = PJSIP_TRANSPORT_LOOP_DGRAM; 
    379     loop->base.key.rem_addr.addr.sa_family = pj_AF_INET(); 
     379    //loop->base.key.rem_addr.addr.sa_family = pj_AF_INET(); 
    380380    loop->base.type_name = "LOOP-DGRAM"; 
    381381    loop->base.info = "LOOP-DGRAM"; 
  • pjproject/trunk/pjsip/src/test/transport_loop_test.c

    r3553 r6021  
    3737    PJ_LOG(3,(THIS_FILE, "testing datagram loop transport")); 
    3838 
     39    pj_sockaddr_in_init(&addr, NULL, 0); 
    3940    /* Test acquire transport. */ 
    4041    status = pjsip_endpt_acquire_transport( endpt, PJSIP_TRANSPORT_LOOP_DGRAM, 
Note: See TracChangeset for help on using the changeset viewer.