Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/nss/rpc.c
diff options
context:
space:
mode:
authorArthur de Jong <arthur@arthurdejong.org>2012-09-15 19:51:00 +0200
committerArthur de Jong <arthur@arthurdejong.org>2012-09-15 19:51:00 +0200
commit542e46b0f21830fcf3950bfcfcf0d80759e09f16 (patch)
tree904ed9ef9ad610df1e73f2471cce8ecf005c4ff9 /nss/rpc.c
parent9d1bfe50eeb5d9beed38186834dfa267945e8996 (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.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/nss/rpc.c b/nss/rpc.c
index 9ac8aaf..bbda7b1 100644
--- a/nss/rpc.c
+++ b/nss/rpc.c
@@ -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);