# HG changeset patch # User Sebastien Decugis # Date 1362237939 -3600 # Node ID 8bb4d749ed37f6d9e7871ea08a3e49636e2639a3 # Parent 69d55a534aff7f6a9d818477c0409ad7a777b8a4 Fix for ticket #43: PPP interface have no address diff -r 69d55a534aff -r 8bb4d749ed37 libfdcore/cnxctx.c --- 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;