autorid: fix uninitialized return code for successful autorid.tdb creation/opening
authorMichael Adam <obnox@samba.org>
Wed, 23 Apr 2014 16:19:09 +0000 (18:19 +0200)
committerMichael 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

index de6af7d123bb4f674935ef31ba5c3ab8679b601a..0d07d3359549d50ffd831a9d7810db612bb5a0c4 100644 (file)
@@ -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;
 }
 
 /**