patches from jean francois: couple of minor bugs
authorLuke Leighton <lkcl@samba.org>
Tue, 5 May 1998 09:04:49 +0000 (09:04 +0000)
committerLuke Leighton <lkcl@samba.org>
Tue, 5 May 1998 09:04:49 +0000 (09:04 +0000)
source/rpc_parse/parse_lsa.c
source/rpc_server/srv_util.c

index 6eb42fc74930ea471ae021e89a312600262db1a0..0a49fb7b4da88f621b71a026b667853a409209b5 100644 (file)
@@ -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)
                {
index 90a811e490216fbef26b788b7c0ee5c7fb149059..898269dc4a92894d29259af4bf28b2dd139fcbbf 100644 (file)
@@ -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);