Ignore:
Timestamp:
Dec 5, 2007 5:08:29 AM (16 years ago)
Author:
bennylp
Message:

Fixed run-time error on MacOS X (and possibly BSD based systems) when bind() is called with larger addrlen

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/src/pjsua-lib/pjsua_core.c

    r1618 r1621  
    12381238    } 
    12391239 
    1240     status = pj_sock_bind(sock, &bind_addr, sizeof(bind_addr)); 
     1240    status = pj_sock_bind(sock, &bind_addr, pj_sockaddr_get_len(&bind_addr)); 
    12411241    if (status != PJ_SUCCESS) { 
    12421242        pjsua_perror(THIS_FILE, "bind() error", status); 
Note: See TracChangeset for help on using the changeset viewer.