Mercurial > hg > freeDiameter
changeset 927:8bb4d749ed37
Fix for ticket #43: PPP interface have no address
author | Sebastien Decugis <sdecugis@freediameter.net> |
---|---|
date | Sat, 02 Mar 2013 16:25:39 +0100 |
parents | 69d55a534aff |
children | 5053f1abcf5d |
files | libfdcore/cnxctx.c |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/libfdcore/cnxctx.c Sat Mar 02 16:21:26 2013 +0100 +++ b/libfdcore/cnxctx.c Sat Mar 02 16:25:39 2013 +0100 @@ -560,6 +560,9 @@ if (cur->ifa_flags & IFF_LOOPBACK) continue; + if (cur->ifa_addr == NULL) /* may happen with ppp interfaces */ + continue; + if (fd_g_config->cnf_flags.no_ip4 && (cur->ifa_addr->sa_family == AF_INET)) continue;