diff options
author | Arthur de Jong <arthur@arthurdejong.org> | 2012-09-15 19:51:00 +0200 |
---|---|---|
committer | Arthur de Jong <arthur@arthurdejong.org> | 2012-09-15 19:51:00 +0200 |
commit | 542e46b0f21830fcf3950bfcfcf0d80759e09f16 (patch) | |
tree | 904ed9ef9ad610df1e73f2471cce8ecf005c4ff9 /nss/rpc.c | |
parent | 9d1bfe50eeb5d9beed38186834dfa267945e8996 (diff) |
clear the *ent structs before writing fields to avoid problems with extra fields (fixes password field weirdness on Solaris 10)
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1767 ef36b2f9-881f-0410-afb5-c4e39611909c
Diffstat (limited to 'nss/rpc.c')
-rw-r--r-- | nss/rpc.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -37,6 +37,7 @@ static nss_status_t read_rpcent( { int32_t tmpint32,tmp2int32,tmp3int32; size_t bufptr=0; + memset(result,0,sizeof(struct rpcent)); READ_BUF_STRING(fp,result->r_name); READ_BUF_STRINGLIST(fp,result->r_aliases); READ_INT32(fp,result->r_number); |