summaryrefslogtreecommitdiff
path: root/lib/libc/gen/getpwent.c
diff options
context:
space:
mode:
authorBill Paul <wpaul@FreeBSD.org>1995-03-27 20:46:40 +0000
committerBill Paul <wpaul@FreeBSD.org>1995-03-27 20:46:40 +0000
commitb38bb6d3743799a86778d7bac24bf501cab310b2 (patch)
tree2a86b3e8e2739b8a381211f0a685dd93937796a3 /lib/libc/gen/getpwent.c
parent6fc818e63f54f91fa7b8d3730fdcd46e81e70768 (diff)
Notes
Diffstat (limited to 'lib/libc/gen/getpwent.c')
-rw-r--r--lib/libc/gen/getpwent.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/lib/libc/gen/getpwent.c b/lib/libc/gen/getpwent.c
index c7a4539f0786..1f9b4d6e98f5 100644
--- a/lib/libc/gen/getpwent.c
+++ b/lib/libc/gen/getpwent.c
@@ -555,14 +555,14 @@ static int
_havemaster(const char *_pw_yp_domain)
{
char *result;
- static char *key;
- int resultlen;
- static int keylen;
-
- if (yp_first(_pw_yp_domain, "master.passwd.byname",
- &key, &keylen, &result, &resultlen))
+ int *order;
+
+ if (yp_order(_pw_yp_domain, "master.passwd.byname", &order)) {
+ free(order);
return 0;
-
+ }
+
+ free(order);
return 1;
}