Ignore:
Timestamp:
Nov 9, 2009 1:40:26 PM (14 years ago)
Author:
nanang
Message:

Ticket #957: Fixed 0.0.0.0:0 address returned by SIP TLS client transport, which would cause 0.0.0.0:0 address in SIP via header.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjlib/src/pj/ssl_sock_ossl.c

    r2998 r3000  
    20902090    status = pj_sock_getsockname(ssock->sock, &ssock->local_addr, 
    20912091                                 &ssock->addr_len); 
    2092     if (status != PJ_SUCCESS) 
    2093         pj_sockaddr_cp(&ssock->local_addr, localaddr); 
     2092    /* Note that we may not get an IP address here. This can 
     2093     * happen for example on Windows, where getsockname() 
     2094     * would return 0.0.0.0 if socket has just started the 
     2095     * async connect. In this case, just leave the local 
     2096     * address with 0.0.0.0 for now; it will be updated 
     2097     * once the socket is established. 
     2098     */ 
    20942099 
    20952100    /* Set remote address */ 
Note: See TracChangeset for help on using the changeset viewer.