summaryrefslogtreecommitdiff
path: root/nss/protocols.c
diff options
context:
space:
mode:
authorArthur de Jong <arthur@arthurdejong.org>2012-09-15 17:51:00 +0000
committerArthur de Jong <arthur@arthurdejong.org>2012-09-15 17:51:00 +0000
commit542e46b0f21830fcf3950bfcfcf0d80759e09f16 (patch)
tree904ed9ef9ad610df1e73f2471cce8ecf005c4ff9 /nss/protocols.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/protocols.c')
-rw-r--r--nss/protocols.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/nss/protocols.c b/nss/protocols.c
index d635830..ead2a3e 100644
--- a/nss/protocols.c
+++ b/nss/protocols.c
@@ -37,6 +37,7 @@ static nss_status_t read_protoent(
{
int32_t tmpint32,tmp2int32,tmp3int32;
size_t bufptr=0;
+ memset(result,0,sizeof(struct protoent));
READ_BUF_STRING(fp,result->p_name);
READ_BUF_STRINGLIST(fp,result->p_aliases);
READ_INT32(fp,result->p_proto);