Mercurial > hg > freeDiameter
diff libfdcore/cnxctx.c @ 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 | b13359ace625 |
children | 5053f1abcf5d |
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;