[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    kdenetwork/krfb/srvloc
From:       Tim Jansen <tim () tjansen ! de>
Date:       2002-12-28 15:26:45
[Download RAW message or body]

CVS commit by tjansen: 

the glibc implementation of getifaddrs uses a union for broadcast and destination \
address, so check the flags before using them


  M +5 -3      kinetinterface.cpp   1.2


--- kdenetwork/krfb/srvloc/kinetinterface.cpp  #1.1:1.2
@@ -243,6 +243,8 @@ QValueVector<KInetInterface> KInetInterf
                                            createAddress(a->ifa_addr),
                                            createAddress(a->ifa_netmask),
-                                           createAddress(a->ifa_broadaddr),
-                                           createAddress(a->ifa_dstaddr)));
+                                           (flags & IFF_BROADCAST) ?
+                                           createAddress(a->ifa_broadaddr) : 0,
+                                           (flags & IFF_POINTOPOINT) ? 
+                                           createAddress(a->ifa_dstaddr) : 0));
                 a = a->ifa_next;
         }


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic