r4313: fixed a bug in handling new xattrs in the tdb xattr backend
authorAndrew Tridgell <tridge@samba.org>
Tue, 21 Dec 2004 11:43:46 +0000 (11:43 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:07:33 +0000 (13:07 -0500)
source/ntvfs/posix/xattr_tdb.c

index 08a2ea4c184e4b3967936477a0c919002bd0dbb0..12fe50c2776d76c7c2f6661166da2377f5107f9b 100644 (file)
@@ -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) {