r4313: fixed a bug in handling new xattrs in the tdb xattr backend
[samba.git] / 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) {