From 542e46b0f21830fcf3950bfcfcf0d80759e09f16 Mon Sep 17 00:00:00 2001 From: Arthur de Jong Date: Sat, 15 Sep 2012 17:51:00 +0000 Subject: 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 --- nss/rpc.c | 1 + 1 file changed, 1 insertion(+) (limited to 'nss/rpc.c') 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); -- cgit v1.2.3