From 7afa6675ee4bdc7ed914635807c3aef5bec1ae3a Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Wed, 1 Sep 2010 10:51:13 +0200 Subject: s3-auth: fix uninitialized error code in get_guest_info3(). Guenther --- source3/auth/auth_util.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/source3/auth/auth_util.c b/source3/auth/auth_util.c index 3b07bad6bf..1b4a284945 100644 --- a/source3/auth/auth_util.c +++ b/source3/auth/auth_util.c @@ -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; } /*************************************************************************** -- cgit