diff options
author | Volker Lendecke <vl@samba.org> | 2008-07-10 18:20:30 +0200 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2008-07-10 18:24:54 +0200 |
commit | ad91d960d0edfc4c7797fb7c324494c1b60bfd57 (patch) | |
tree | dea26f00cafa17e5b529ffa4eadea6cb55681667 | |
parent | a5ad7a64c6a03e1cf085b21b84af5f2d3e00b947 (diff) | |
download | samba-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.c | 4 | ||||
-rw-r--r-- | source3/rpc_client/init_lsa.c | 2 |
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; } /******************************************************************* |