git.samba.org
/
obnox
/
samba
/
samba-obnox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
04a4dc9
)
autorid: fix uninitialized return code for successful autorid.tdb creation/opening
author
Michael Adam
<obnox@samba.org>
Wed, 23 Apr 2014 16:19:09 +0000
(18:19 +0200)
committer
Michael Adam
<obnox@samba.org>
Fri, 25 Apr 2014 13:35:09 +0000
(15:35 +0200)
Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
source3/winbindd/idmap_autorid_tdb.c
patch
|
blob
|
history
diff --git
a/source3/winbindd/idmap_autorid_tdb.c
b/source3/winbindd/idmap_autorid_tdb.c
index de6af7d123bb4f674935ef31ba5c3ab8679b601a..0d07d3359549d50ffd831a9d7810db612bb5a0c4 100644
(file)
--- a/
source3/winbindd/idmap_autorid_tdb.c
+++ b/
source3/winbindd/idmap_autorid_tdb.c
@@
-710,8
+710,6
@@
NTSTATUS idmap_autorid_db_open(const char *path,
TALLOC_CTX *mem_ctx,
struct db_context **db)
{
- NTSTATUS status;
-
if (*db != NULL) {
/* its already open */
return NT_STATUS_OK;
@@
-726,7
+724,7
@@
NTSTATUS idmap_autorid_db_open(const char *path,
return NT_STATUS_UNSUCCESSFUL;
}
- return
status
;
+ return
NT_STATUS_OK
;
}
/**