summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
Diffstat (limited to 'source3')
-rw-r--r--source3/rpc_parse/parse_lsa.c2
-rw-r--r--source3/rpc_server/srv_util.c3
2 files changed, 2 insertions, 3 deletions
diff --git a/source3/rpc_parse/parse_lsa.c b/source3/rpc_parse/parse_lsa.c
index 6eb42fc749..0a49fb7b4d 100644
--- a/source3/rpc_parse/parse_lsa.c
+++ b/source3/rpc_parse/parse_lsa.c
@@ -474,7 +474,7 @@ void lsa_io_trans_names(char *desc, LSA_TRANS_NAME_ENUM *trn, prs_struct *ps, in
prs_uint32(temp, ps, depth, &(trn->ptr_name[i])); /* pointer to translated name */
}
- for (i = 0; i < trn->num_entries2; i++)
+ for (i = 0, i2 = 0; i < trn->num_entries2; i++)
{
if (trn->ptr_name[i] != 0)
{
diff --git a/source3/rpc_server/srv_util.c b/source3/rpc_server/srv_util.c
index 90a811e490..898269dc4a 100644
--- a/source3/rpc_server/srv_util.c
+++ b/source3/rpc_server/srv_util.c
@@ -401,9 +401,8 @@ uint32 lookup_user_name(uint32 rid, char *user_name, uint32 *type)
return 0x0;
}
- DEBUG(5,(" uid: %d", unix_uid));
-
unix_uid = uid_to_user_rid(rid);
+ DEBUG(5,(" uid: %d", unix_uid));
/* ok, it's a user. find the user account */
become_root(True);