1
0
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:
Volker Lendecke 2012-05-09 10:30:47 +02:00
parent 05e59739b3
commit d716a9bd06

View File

@ -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;
}
tmp_ctx = talloc_stackframe();
if (tmp_ctx == NULL) {