From: Tomas Hruby Date: Thu, 11 Oct 2012 09:43:33 +0000 (+0000) Subject: LIBC - getifaddrs() fix X-Git-Tag: v3.2.1~293 X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/style.css?a=commitdiff_plain;h=ee99bb81b9ca8a193e38c218b44777863f13e89d;p=minix.git LIBC - getifaddrs() fix ifpa must be set to something meaningful every time it returns 0. --- diff --git a/lib/libc/net/minix/getifaddrs.c b/lib/libc/net/minix/getifaddrs.c index 87ddc26ba..5a54d9815 100644 --- a/lib/libc/net/minix/getifaddrs.c +++ b/lib/libc/net/minix/getifaddrs.c @@ -34,6 +34,8 @@ getifaddrs(struct ifaddrs **ifap) addr.sin_addr.s_addr = 0; netmask.sin_addr.s_addr = 0; + *ifap = NULL; + if(fd < 0) { char *ipd;