summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2012-02-05 15:31:31 +0100
committerJelmer Vernooij <jelmer@samba.org>2012-02-07 01:11:07 +0100
commit6b1e83c65c5de68f1f1478e383ee85b0dfbcaae3 (patch)
treef61dac6990250d958b225340cec2b344f6b654aa /source4
parent9c000f1def6bb4f4254cca697f2dca143ea40291 (diff)
downloadsamba-6b1e83c65c5de68f1f1478e383ee85b0dfbcaae3.tar.gz
samba-6b1e83c65c5de68f1f1478e383ee85b0dfbcaae3.tar.bz2
samba-6b1e83c65c5de68f1f1478e383ee85b0dfbcaae3.zip
pyxattr_tdb: Remove pointless check for blob.length < 0.
Diffstat (limited to 'source4')
-rw-r--r--source4/ntvfs/posix/python/pyxattr_tdb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/ntvfs/posix/python/pyxattr_tdb.c b/source4/ntvfs/posix/python/pyxattr_tdb.c
index 7e59b54ee2..7248560039 100644
--- a/source4/ntvfs/posix/python/pyxattr_tdb.c
+++ b/source4/ntvfs/posix/python/pyxattr_tdb.c
@@ -92,7 +92,7 @@ static PyObject *py_wrap_getxattr(PyObject *self, PyObject *args)
}
status = pull_xattr_blob_tdb_raw(eadb, mem_ctx, attribute, filename,
-1, 100, &blob);
- if (!NT_STATUS_IS_OK(status) || blob.length < 0) {
+ if (!NT_STATUS_IS_OK(status)) {
PyErr_SetNTSTATUS(status);
talloc_free(mem_ctx);
return NULL;