about summary refs log tree commit diff
path: root/nis/nss_nis/nis-proto.c
diff options
context:
space:
mode:
Diffstat (limited to 'nis/nss_nis/nis-proto.c')
-rw-r--r--nis/nss_nis/nis-proto.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/nis/nss_nis/nis-proto.c b/nis/nss_nis/nis-proto.c
index 3349fe5b36..92ef1c0010 100644
--- a/nis/nss_nis/nis-proto.c
+++ b/nis/nss_nis/nis-proto.c
@@ -77,6 +77,7 @@ internal_nis_setprotoent (void)
 {
   char *domainname;
   struct ypall_callback ypcb;
+  enum nss_status status;
   
   yp_get_default_domain (&domainname);
   
@@ -92,10 +93,10 @@ internal_nis_setprotoent (void)
   
   ypcb.foreach = saveit;
   ypcb.data = NULL;
-  yp_all (domainname, "protocols.bynumber", &ypcb);
+  status = yperr2nss (yp_all (domainname, "protocols.bynumber", &ypcb));
   next = start;
   
-  return NSS_STATUS_SUCCESS;
+  return status;
 }
 
 enum nss_status