mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
s3: Fix Coverity ID 242184 Dereference after null check
rpc_query_user unconditionally dereferences user_info if successfull
This commit is contained in:
parent
05e59739b3
commit
d716a9bd06
@ -317,11 +317,9 @@ static NTSTATUS sam_query_user(struct winbindd_domain *domain,
|
||||
return NT_STATUS_NO_SUCH_USER;
|
||||
}
|
||||
|
||||
if (user_info) {
|
||||
user_info->homedir = NULL;
|
||||
user_info->shell = NULL;
|
||||
user_info->primary_gid = (gid_t) -1;
|
||||
}
|
||||
user_info->homedir = NULL;
|
||||
user_info->shell = NULL;
|
||||
user_info->primary_gid = (gid_t) -1;
|
||||
|
||||
tmp_ctx = talloc_stackframe();
|
||||
if (tmp_ctx == NULL) {
|
||||
|
Loading…
Reference in New Issue
Block a user