From d1eedf789d383b1a654f9f13191f6bae015faf2b Mon Sep 17 00:00:00 2001 From: Arthur de Jong Date: Tue, 14 Nov 2006 14:40:09 +0000 Subject: 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 --- nss/common.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'nss') 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); \ -- cgit v1.2.3