s3-auth: fix uninitialized error code in get_guest_info3().
authorGünther Deschner <gd@samba.org>
Wed, 1 Sep 2010 08:51:13 +0000 (10:51 +0200)
committerGünther Deschner <gd@samba.org>
Wed, 1 Sep 2010 08:51:13 +0000 (10:51 +0200)
Guenther

source3/auth/auth_util.c

index 3b07bad6bf86d3cfa8abfe95e5837eb22754a79c..1b4a284945b0ff0bf1e2154ddff0bb5a608a4a81 100644 (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;
 }
 
 /***************************************************************************