git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e5c7ec6
)
s3-auth: fix uninitialized error code in get_guest_info3().
author
Günther Deschner
<gd@samba.org>
Wed, 1 Sep 2010 08:51:13 +0000
(10:51 +0200)
committer
Günther Deschner
<gd@samba.org>
Wed, 1 Sep 2010 08:51:13 +0000
(10:51 +0200)
Guenther
source3/auth/auth_util.c
patch
|
blob
|
history
diff --git
a/source3/auth/auth_util.c
b/source3/auth/auth_util.c
index 3b07bad6bf86d3cfa8abfe95e5837eb22754a79c..1b4a284945b0ff0bf1e2154ddff0bb5a608a4a81 100644
(file)
--- 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
;
}
/***************************************************************************