1
0
mirror of https://github.com/samba-team/samba.git synced 2025-08-29 13:49:30 +03:00

s3-auth: fix uninitialized error code in get_guest_info3().

Guenther
This commit is contained in:
Günther Deschner
2010-09-01 10:51:13 +02:00
parent e5c7ec6698
commit 7afa6675ee

View File

@ -639,7 +639,6 @@ static NTSTATUS get_guest_info3(TALLOC_CTX *mem_ctx,
struct dom_sid domain_sid;
struct passwd *pwd;
const char *tmp;
NTSTATUS status;
pwd = getpwnam_alloc(mem_ctx, guest_account);
if (pwd == NULL) {
@ -677,7 +676,7 @@ static NTSTATUS get_guest_info3(TALLOC_CTX *mem_ctx,
info3->base.primary_gid = BUILTIN_RID_GUESTS;
TALLOC_FREE(pwd);
return status;
return NT_STATUS_OK;
}
/***************************************************************************