mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-01-15 10:51:56 -06:00
In openvz we found out some interfaces may return a null pointer here.
Skip them if no address is provided or we later get a segfault because we dereference a null pointer.
This commit is contained in:
parent
4b4e0e1516
commit
67f62709f8
@ -1299,6 +1299,10 @@ int main(int argc, char *argv[])
|
||||
|
||||
for (tifa = ifa; tifa; tifa = tifa->ifa_next) {
|
||||
|
||||
if (NULL == tifa->ifa_addr)
|
||||
/* uhmm no address ?? skip it */
|
||||
continue;
|
||||
|
||||
if (tifa->ifa_addr->sa_family != AF_INET &&
|
||||
tifa->ifa_addr->sa_family != AF_INET6) {
|
||||
/* not interesting for us */
|
||||
|
Loading…
Reference in New Issue
Block a user