s3: Same fix as 8576256, this time for fgetxattr
authorVolker Lendecke <vl@samba.org>
Fri, 1 Jun 2012 08:32:54 +0000 (10:32 +0200)
committerJeremy Allison <jra@samba.org>
Sat, 2 Jun 2012 00:12:31 +0000 (02:12 +0200)
Signed-off-by: Jeremy Allison <jra@samba.org>
Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Sat Jun  2 02:12:31 CEST 2012 on sn-devel-104

source3/modules/vfs_xattr_tdb.c

index fc5c3de6e52c4a6e74b32a7b6ea0649edb860772..859e06b8606cecb61a0adbaca007230fd02fc3b6 100644 (file)
@@ -91,7 +91,7 @@ static ssize_t xattr_tdb_fgetxattr(struct vfs_handle_struct *handle,
                errno = ERANGE;
                return -1;
        }
-       memcpy(value, blob.data, size);
+       memcpy(value, blob.data, xattr_size);
        TALLOC_FREE(frame);
        return xattr_size;
 }