diff options
author | Benny Prijono <bennylp@teluu.com> | 2007-12-05 05:08:29 +0000 |
---|---|---|
committer | Benny Prijono <bennylp@teluu.com> | 2007-12-05 05:08:29 +0000 |
commit | d1146bb616cf5387123305fdf79319fc46de437c (patch) | |
tree | 9e2f3eecf7dc1d5279c50bd12f8ea8278e73dff2 /pjsip | |
parent | 0867865e82fcdd71fc78c90ca9c1c833ef5882d6 (diff) |
Fixed run-time error on MacOS X (and possibly BSD based systems) when bind() is called with larger addrlen
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@1621 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjsip')
-rw-r--r-- | pjsip/src/pjsua-lib/pjsua_core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pjsip/src/pjsua-lib/pjsua_core.c b/pjsip/src/pjsua-lib/pjsua_core.c index 653d63a0..f7addbd3 100644 --- a/pjsip/src/pjsua-lib/pjsua_core.c +++ b/pjsip/src/pjsua-lib/pjsua_core.c @@ -1237,7 +1237,7 @@ static pj_status_t create_sip_udp_sock(int af, return status; } - status = pj_sock_bind(sock, &bind_addr, sizeof(bind_addr)); + status = pj_sock_bind(sock, &bind_addr, pj_sockaddr_get_len(&bind_addr)); if (status != PJ_SUCCESS) { pjsua_perror(THIS_FILE, "bind() error", status); pj_sock_close(sock); |