From: Volker Lendecke Date: Fri, 1 Jun 2012 08:32:54 +0000 (+0200) Subject: s3: Same fix as 8576256, this time for fgetxattr X-Git-Tag: samba-4.0.0beta1~66 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=97a4901d6c16a8628f348edb182849326c3b1f2d;p=thirdparty%2Fsamba.git s3: Same fix as 8576256, this time for fgetxattr Signed-off-by: Jeremy Allison Autobuild-User: Jeremy Allison Autobuild-Date: Sat Jun 2 02:12:31 CEST 2012 on sn-devel-104 --- diff --git a/source3/modules/vfs_xattr_tdb.c b/source3/modules/vfs_xattr_tdb.c index fc5c3de6e52..859e06b8606 100644 --- a/source3/modules/vfs_xattr_tdb.c +++ b/source3/modules/vfs_xattr_tdb.c @@ -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; }