From: Martin Mares Date: Fri, 2 Apr 1999 13:38:54 +0000 (+0000) Subject: Fixed `too many interfaces' cases. X-Git-Tag: v1.2.0~1630 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fe662dfd782619fd6505a1456b973b2525ab6ebf;p=thirdparty%2Fbird.git Fixed `too many interfaces' cases. --- diff --git a/sysdep/unix/krt-iface.c b/sysdep/unix/krt-iface.c index 630355886..083af29b7 100644 --- a/sysdep/unix/krt-iface.c +++ b/sysdep/unix/krt-iface.c @@ -147,7 +147,7 @@ krt_if_scan(struct kif_proto *p) res = ioctl(if_scan_sock, SIOCGIFCONF, &ic); if (res < 0 && errno != EFAULT) die("SIOCCGIFCONF: %m"); - if (res < last_ifbuf_size) + if (res >= 0 && ic.ifc_len < last_ifbuf_size) { scan_ifs(r, ic.ifc_len); break;