s3:dbwrap_tdb: pass NTSTATUS code further up from db_tdb_fetch_parse in db_tdb_fetch()
authorMichael Adam <obnox@samba.org>
Tue, 29 Nov 2011 21:36:48 +0000 (22:36 +0100)
committerMichael Adam <obnox@samba.org>
Wed, 30 Nov 2011 00:46:31 +0000 (01:46 +0100)
Autobuild-User: Michael Adam <obnox@samba.org>
Autobuild-Date: Wed Nov 30 01:46:31 CET 2011 on sn-devel-104

source3/lib/dbwrap/dbwrap_tdb.c

index cf761e24f0bc090f230755f05d6cbb4fb3196386..ffdb906405f0099cf66a893118467ecb682648c9 100644 (file)
@@ -191,7 +191,7 @@ static NTSTATUS db_tdb_fetch(struct db_context *db, TALLOC_CTX *mem_ctx,
        }
 
        if (!NT_STATUS_IS_OK(state.result)) {
-               return NT_STATUS_INTERNAL_DB_CORRUPTION;
+               return state.result;
        }
 
        *pdata = state.data;