1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00

r22711: Fix a compile warnign in query_user(). Ensure that user_rid

is initialized.
(This used to be commit ef03042682)
This commit is contained in:
Gerald Carter 2007-05-06 20:32:36 +00:00 committed by Gerald (Jerry) Carter
parent 391a72f3df
commit 80dca03aae
2 changed files with 2 additions and 3 deletions

View File

@ -461,7 +461,6 @@ static NTSTATUS query_user(struct winbindd_domain *domain,
char *sidstr;
uint32 group_rid;
NTSTATUS status = NT_STATUS_UNSUCCESSFUL;
uint32 user_rid;
NET_USER_INFO_3 *user;
DEBUG(3,("ads: query_user\n"));
@ -478,7 +477,7 @@ static NTSTATUS query_user(struct winbindd_domain *domain,
DEBUG(5,("query_user: Cache lookup succeeded for %s\n",
sid_string_static(sid)));
sid_compose(&info->user_sid, &domain->sid, user_rid);
sid_compose(&info->user_sid, &domain->sid, user->user_rid);
sid_compose(&info->group_sid, &domain->sid, user->group_rid);
info->acct_name = unistr2_tdup(mem_ctx, &user->uni_user_name);

View File

@ -438,7 +438,7 @@ static NTSTATUS query_user(struct winbindd_domain *domain,
DEBUG(5,("query_user: Cache lookup succeeded for %s\n",
sid_string_static(user_sid)));
sid_compose(&user_info->user_sid, &domain->sid, user_rid);
sid_compose(&user_info->user_sid, &domain->sid, user->user_rid);
sid_compose(&user_info->group_sid, &domain->sid,
user->group_rid);