summaryrefslogtreecommitdiff
path: root/source4/ntvfs
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2004-12-21 11:43:46 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:07:33 -0500
commitde2ccc5ca93e0a0476aa829afd987cc043479e91 (patch)
treee660917c74037bfa739a6f57e2a872f8ce7de27d /source4/ntvfs
parent6bc971d8b5fbdaaaed1c4756424395ce8fc1e42b (diff)
downloadsamba-de2ccc5ca93e0a0476aa829afd987cc043479e91.tar.gz
samba-de2ccc5ca93e0a0476aa829afd987cc043479e91.tar.bz2
samba-de2ccc5ca93e0a0476aa829afd987cc043479e91.zip
r4313: fixed a bug in handling new xattrs in the tdb xattr backend
(This used to be commit c66b5a100c1b83adf034087fe2ce49fc77d84161)
Diffstat (limited to 'source4/ntvfs')
-rw-r--r--source4/ntvfs/posix/xattr_tdb.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/source4/ntvfs/posix/xattr_tdb.c b/source4/ntvfs/posix/xattr_tdb.c
index 08a2ea4c18..12fe50c277 100644
--- a/source4/ntvfs/posix/xattr_tdb.c
+++ b/source4/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) {