summaryrefslogtreecommitdiff
path: root/source3/auth
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2010-09-01 10:51:13 +0200
committerGünther Deschner <gd@samba.org>2010-09-01 10:51:13 +0200
commit7afa6675ee4bdc7ed914635807c3aef5bec1ae3a (patch)
treedf330ea77d47779609fb764ba915aba2d1eabf5d /source3/auth
parente5c7ec66982e6d2705c7a103aff5502f441404bb (diff)
downloadsamba-7afa6675ee4bdc7ed914635807c3aef5bec1ae3a.tar.gz
samba-7afa6675ee4bdc7ed914635807c3aef5bec1ae3a.tar.bz2
samba-7afa6675ee4bdc7ed914635807c3aef5bec1ae3a.zip
s3-auth: fix uninitialized error code in get_guest_info3().
Guenther
Diffstat (limited to 'source3/auth')
-rw-r--r--source3/auth/auth_util.c3
1 files changed, 1 insertions, 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;
}
/***************************************************************************