]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Fixed `too many interfaces' cases.
authorMartin Mares <mj@ucw.cz>
Fri, 2 Apr 1999 13:38:54 +0000 (13:38 +0000)
committerMartin Mares <mj@ucw.cz>
Fri, 2 Apr 1999 13:38:54 +0000 (13:38 +0000)
sysdep/unix/krt-iface.c

index 630355886be3c20f63d26847df6549751007f1e0..083af29b73a0b71e972a0fdeb86f1f478e2e7a28 100644 (file)
@@ -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;