summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2015-07-29 15:25:09 +1200
committerStefan Metzmacher <metze@samba.org>2015-09-03 09:11:35 +0200
commita7790399c64cebdaae6f011a13397c877e7b56ce (patch)
tree2272589ea1a5eb847c2d87af20b801f592e83730
parentc9ed862d73a6c36c7e23f3a320671006fff48f1a (diff)
downloadsamba-a7790399c64cebdaae6f011a13397c877e7b56ce.tar.gz
python: Use an unsigned integer for buf_size, not -1
This will fail once our python bindings correctly check value ranges BUG: https://bugzilla.samba.org/show_bug.cgi?id=11429 Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org> (cherry picked from commit 3faa7dc5a7d39cfdfc908a51e38772fda801c1a3)
-rw-r--r--python/samba/tests/dcerpc/sam.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/samba/tests/dcerpc/sam.py b/python/samba/tests/dcerpc/sam.py
index 0e09323adbe..1c48d7e8170 100644
--- a/python/samba/tests/dcerpc/sam.py
+++ b/python/samba/tests/dcerpc/sam.py
@@ -45,6 +45,6 @@ class SamrTests(RpcInterfaceTestCase):
def test_EnumDomains(self):
handle = self.conn.Connect2(None, security.SEC_FLAG_MAXIMUM_ALLOWED)
- domains = toArray(self.conn.EnumDomains(handle, 0, -1))
+ domains = toArray(self.conn.EnumDomains(handle, 0, 4294967295L))
self.conn.Close(handle)