From c66b5a100c1b83adf034087fe2ce49fc77d84161 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Tue, 21 Dec 2004 11:43:46 +0000 Subject: [PATCH] r4313: fixed a bug in handling new xattrs in the tdb xattr backend --- source/ntvfs/posix/xattr_tdb.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/source/ntvfs/posix/xattr_tdb.c b/source/ntvfs/posix/xattr_tdb.c index 08a2ea4c184..12fe50c2776 100644 --- a/source/ntvfs/posix/xattr_tdb.c +++ b/source/ntvfs/posix/xattr_tdb.c @@ -47,8 +47,7 @@ static NTSTATUS xattr_tdb_add_list(struct pvfs_state *pvfs, const char *attr_nam status = pull_xattr_blob_tdb(pvfs, mem_ctx, XATTR_LIST_ATTR, fname, fd, 100, &blob); if (!NT_STATUS_IS_OK(status)) { - talloc_free(mem_ctx); - return NT_STATUS_OK; + blob = data_blob(NULL, 0); } for (s=blob.data; s < (char *)(blob.data+blob.length); s += strlen(s) + 1) {