summaryrefslogtreecommitdiff
path: root/source4/smbd
diff options
context:
space:
mode:
Diffstat (limited to 'source4/smbd')
-rw-r--r--source4/smbd/password.c2
-rw-r--r--source4/smbd/rewrite.c6
2 files changed, 3 insertions, 5 deletions
diff --git a/source4/smbd/password.c b/source4/smbd/password.c
index d2559ac41e..53530abf7a 100644
--- a/source4/smbd/password.c
+++ b/source4/smbd/password.c
@@ -26,7 +26,7 @@ check if a uid has been validated, and return an pointer to the user_struct
if it has. NULL if not. vuid is biased by an offset. This allows us to
tell random client vuid's (normally zero) from valid vuids.
****************************************************************************/
-user_struct *get_valid_user_struct(struct server_context *smb, uint16 vuid)
+struct user_struct *get_valid_user_struct(struct server_context *smb, uint16 vuid)
{
user_struct *usp;
int count=0;
diff --git a/source4/smbd/rewrite.c b/source4/smbd/rewrite.c
index 4421d0c960..18ff62e9dc 100644
--- a/source4/smbd/rewrite.c
+++ b/source4/smbd/rewrite.c
@@ -64,15 +64,13 @@ BOOL init_names(void)
BOOL uid_to_sid(DOM_SID *sid, uid_t uid)
{
- *sid = *get_global_sam_sid();
- sid_append_rid(sid, uid*2);
+ ZERO_STRUCTP(sid);
return True;
}
BOOL gid_to_sid(DOM_SID *sid, gid_t gid)
{
- *sid = *get_global_sam_sid();
- sid_append_rid(sid, gid*2 + 1);
+ ZERO_STRUCTP(sid);
return True;
}