diff options
Diffstat (limited to 'nss/rpc.c')
-rw-r--r-- | nss/rpc.c | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -2,7 +2,7 @@ rpc.c - NSS lookup functions for rpc database Copyright (C) 2006 West Consulting - Copyright (C) 2006, 2007 Arthur de Jong + Copyright (C) 2006, 2007, 2008 Arthur de Jong This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public @@ -61,12 +61,13 @@ static __thread TFILE *protoentfp; enum nss_status _nss_ldap_setrpcent(int UNUSED(stayopen)) { - NSS_SETENT(protoentfp,NSLCD_ACTION_RPC_ALL); + NSS_SETENT(protoentfp); } enum nss_status _nss_ldap_getrpcent_r(struct rpcent *result,char *buffer,size_t buflen,int *errnop) { - NSS_GETENT(protoentfp,read_rpcent(protoentfp,result,buffer,buflen,errnop)); + NSS_GETENT(protoentfp,NSLCD_ACTION_RPC_ALL, + read_rpcent(protoentfp,result,buffer,buflen,errnop)); } enum nss_status _nss_ldap_endrpcent(void) |