Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/nss
diff options
context:
space:
mode:
authorArthur de Jong <arthur@arthurdejong.org>2006-11-14 15:40:09 +0100
committerArthur de Jong <arthur@arthurdejong.org>2006-11-14 15:40:09 +0100
commitd1eedf789d383b1a654f9f13191f6bae015faf2b (patch)
treec2eef76da350a56a719fd82d8f3d3330c60a99df /nss
parent4591b95f34821f82d6c8b28da2e9f9805ca667cb (diff)
just close the stream in case of problems instead of calling endent()
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/libnss_ldapd@87 ef36b2f9-881f-0410-afb5-c4e39611909c
Diffstat (limited to 'nss')
-rw-r--r--nss/common.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/nss/common.h b/nss/common.h
index 21771e4..0dbee34 100644
--- a/nss/common.h
+++ b/nss/common.h
@@ -66,7 +66,7 @@ enum nss_status nslcd2nss(int code);
errnop=&errnocp; \
/* close the existing stream if it is still open */ \
if (fp!=NULL) \
- _nss_ldap_endpwent(); \
+ fclose(fp); \
/* open a new stream and write the request */ \
OPEN_SOCK(fp); \
WRITE_REQUEST(fp,action); \