1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-28 01:58:17 +03:00

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>
This commit is contained in:
Andrew Bartlett 2015-07-29 15:25:09 +12:00 committed by Stefan Metzmacher
parent 4ef468eecd
commit 3faa7dc5a7

View File

@ -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)