Navigation


Changeset 379:7337305ee51e in freeDiameter for freeDiameter/p_cnx.c


Ignore:
Timestamp:
Jul 5, 2010, 5:04:46 PM (14 years ago)
Author:
Sebastien Decugis <sdecugis@nict.go.jp>
Branch:
default
Phase:
public
Message:

Workaround to prevent peer connecting to itself (ipv6 local addresses)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • freeDiameter/p_cnx.c

    r375 r379  
    118118        }
    119119       
     120        /* Remove any local address that would be here, it should not happen but it does sometimes... */
     121        CHECK_FCT( fd_ep_filter_list(&peer->p_hdr.info.pi_endpoints, &fd_g_config->cnf_endpoints) );
     122       
    120123        /* Now check we have at least one address to attempt */
    121124        if (FD_IS_LIST_EMPTY(&peer->p_hdr.info.pi_endpoints)) {
Note: See TracChangeset for help on using the changeset viewer.