summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorwpaul <wpaul@FreeBSD.org>1995-04-15 03:11:55 +0000
committerwpaul <wpaul@FreeBSD.org>1995-04-15 03:11:55 +0000
commitfaeb7168709de647ce9451abf06426670ebe52e0 (patch)
tree1b0a3dab7d454f3f636aed9729eb1228067b0a07 /lib
parentf3c66b4569b512f27b183c261ad0e426de853937 (diff)
downloadFreeBSD-src-faeb7168709de647ce9451abf06426670ebe52e0.zip
FreeBSD-src-faeb7168709de647ce9451abf06426670ebe52e0.tar.gz
Head off potential core dump in _havemaster() (we don't need to free any
memory here: the underlying YP routines handle this one for us).
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/gen/getpwent.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/libc/gen/getpwent.c b/lib/libc/gen/getpwent.c
index b8f1b19..4cfe11a 100644
--- a/lib/libc/gen/getpwent.c
+++ b/lib/libc/gen/getpwent.c
@@ -557,14 +557,11 @@ static char *_pw_yp_domain;
static int
_havemaster(char *_pw_yp_domain)
{
- int *order;
+ int order;
if (yp_order(_pw_yp_domain, "master.passwd.byname", (int *)&order)) {
- free(order);
return 0;
}
-
- free(order);
return 1;
}
OpenPOWER on IntegriCloud