[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#356858: xdm and getifaddrs()



package xdm
tags 356858 + patch
thankyou

Hi,

(belatedly tagging the bug as patched, and attaching a "proper" patch,
 i.e. diff -Nau)

I've filed a bug against libc6 concerning this issue, and done some
research... => #357152. Now it's your choice if you want to wait for
#357152's resolution or apply a fix for xdm regardless of that.


Regards,

Jan

-- 
Jan C. Nordholz
<jckn At gmx net>
--- auth.c.orig	2006-03-23 22:48:03.000000000 +0100
+++ auth.c	2006-03-14 14:45:16.000000000 +0100
@@ -732,6 +732,7 @@
     if (getifaddrs(&ifap) < 0) 
 	return;
     for (ifr = ifap; ifr != NULL; ifr = ifr->ifa_next) {
+        if (!ifr->ifa_addr) continue;
 	len = sizeof(*(ifr->ifa_addr));
 	family = ConvertAddr((XdmcpNetaddr)(ifr->ifa_addr), &len, &addr);
 	if (family == -1 || family == FamilyLocal) 

Reply to: