Changeset 5379


Ignore:
Timestamp:
Jul 12, 2016 12:36:35 PM (8 years ago)
Author:
nanang
Message:

Misc (re #1928): Fixed pjlib-util-test issue on Mac due to bad socket address length param for pj_sock_bind().

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjlib-util/src/pjlib-util-test/resolver_test.c

    r5349 r5379  
    458458                         &addr, NULL, (pj_uint16_t)g_server[i].port); 
    459459 
    460         status = pj_sock_bind(g_server[i].sock, &addr, sizeof(addr)); 
     460        status = pj_sock_bind(g_server[i].sock, &addr, pj_sockaddr_get_len(&addr)); 
    461461        if (status != PJ_SUCCESS) 
    462462            return -20; 
     
    18791879#if PJ_HAS_IPV6 
    18801880    /* Similar tests using IPv6 socket and without parser tests */ 
    1881     PJ_LOG(3,(THIS_FILE, "  Re-run DNS resolution tests using IPv6 socket")); 
     1881    PJ_LOG(3,(THIS_FILE, "Re-run DNS resolution tests using IPv6 socket")); 
    18821882 
    18831883    rc = init(PJ_TRUE); 
Note: See TracChangeset for help on using the changeset viewer.