summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2008-07-10 18:20:30 +0200
committerVolker Lendecke <vl@samba.org>2008-07-10 18:24:54 +0200
commitad91d960d0edfc4c7797fb7c324494c1b60bfd57 (patch)
treedea26f00cafa17e5b529ffa4eadea6cb55681667
parenta5ad7a64c6a03e1cf085b21b84af5f2d3e00b947 (diff)
downloadsamba-ad91d960d0edfc4c7797fb7c324494c1b60bfd57.tar.gz
samba-ad91d960d0edfc4c7797fb7c324494c1b60bfd57.tar.bz2
samba-ad91d960d0edfc4c7797fb7c324494c1b60bfd57.zip
Fix some uninitialized variable references via ndr_print
(This used to be commit 26fb3fea812867f8b0dfe6a1be59e4922ed86e45)
-rw-r--r--source3/passdb/pdb_ldap.c4
-rw-r--r--source3/rpc_client/init_lsa.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/source3/passdb/pdb_ldap.c b/source3/passdb/pdb_ldap.c
index 63262406e5..e5080bac14 100644
--- a/source3/passdb/pdb_ldap.c
+++ b/source3/passdb/pdb_ldap.c
@@ -4666,7 +4666,9 @@ static bool ldapgroup2displayentry(struct ldap_search_state *state,
DEBUG(0,("unkown group type: %d\n", group_type));
return False;
}
-
+
+ result->acct_flags = 0;
+
return True;
}
diff --git a/source3/rpc_client/init_lsa.c b/source3/rpc_client/init_lsa.c
index 2637158fd0..9777f27629 100644
--- a/source3/rpc_client/init_lsa.c
+++ b/source3/rpc_client/init_lsa.c
@@ -26,6 +26,8 @@
void init_lsa_String(struct lsa_String *name, const char *s)
{
name->string = s;
+ name->size = 2 * strlen_m(s);
+ name->length = name->size;
}
/*******************************************************************