summaryrefslogtreecommitdiff
path: root/source4/ntvfs/posix/xattr_tdb.c
diff options
context:
space:
mode:
Diffstat (limited to 'source4/ntvfs/posix/xattr_tdb.c')
-rw-r--r--source4/ntvfs/posix/xattr_tdb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/ntvfs/posix/xattr_tdb.c b/source4/ntvfs/posix/xattr_tdb.c
index 44aced9bee..07b3712215 100644
--- a/source4/ntvfs/posix/xattr_tdb.c
+++ b/source4/ntvfs/posix/xattr_tdb.c
@@ -185,7 +185,7 @@ NTSTATUS push_xattr_blob_tdb_raw(struct tdb_wrap *ea_tdb,
goto done;
}
- if (tdb_store(ea_tdb->tdb, tkey, tdata, TDB_REPLACE) == -1) {
+ if (tdb_store(ea_tdb->tdb, tkey, tdata, TDB_REPLACE) != 0) {
status = NT_STATUS_INTERNAL_DB_CORRUPTION;
}