From: Jelmer Vernooij Date: Sun, 5 Feb 2012 14:31:31 +0000 (+0100) Subject: pyxattr_tdb: Remove pointless check for blob.length < 0. X-Git-Tag: tevent-0.9.15~33 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6b1e83c65c5de68f1f1478e383ee85b0dfbcaae3;p=thirdparty%2Fsamba.git pyxattr_tdb: Remove pointless check for blob.length < 0. --- diff --git a/source4/ntvfs/posix/python/pyxattr_tdb.c b/source4/ntvfs/posix/python/pyxattr_tdb.c index 7e59b54ee2e..7248560039d 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;