(nis_lookup): Don't try the next server if network is unreachable.
authordrepper <drepper>
Mon, 28 Jul 1997 21:57:13 +0000 (21:57 +0000)
committerdrepper <drepper>
Mon, 28 Jul 1997 21:57:13 +0000 (21:57 +0000)
nis/nis_lookup.c

index 82db7b0..6224b1f 100644 (file)
@@ -96,6 +96,10 @@ nis_lookup (const_nis_name name, const u_long flags)
          /* XXX Implement CALLBACK here ! */
          ++done;
          break;
+       case NIS_UNAVAIL:
+         /* NIS+ is not installed, or all servers are down */
+         ++done;
+         break;
        default:
          /* Try the next domainname if we don't follow a link */
          if (count_links)