summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonny Lamb <jonny.lamb@collabora.co.uk>2010-03-11 13:33:41 +0000
committerJonny Lamb <jonny.lamb@collabora.co.uk>2010-03-11 17:36:04 +0000
commit9f2081ca9618d71b3393c9447ed9f16b142144bc (patch)
treea23219d88051c3c9f7dda0b69c89ea9026aeba13
parent028c2e68b2532ad15dd9b91f0cf76cb8665f38ce (diff)
conn: only allow TargetHandleType <= LAST_HANDLE_TYPE
Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
-rw-r--r--src/server/conn.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/conn.py b/src/server/conn.py
index 47c6fae..bf2d8a3 100644
--- a/src/server/conn.py
+++ b/src/server/conn.py
@@ -419,7 +419,7 @@ class ConnectionInterfaceRequests(
# Allow TargetHandleType to be missing, but not to be otherwise broken.
check_valid_type_if_exists('TargetHandleType',
- lambda p: p >= 0 and p < (2**32)-1)
+ lambda p: p >= 0 and p <= LAST_HANDLE_TYPE)
# Allow TargetType to be missing, but not to be otherwise broken.
check_valid_type_if_exists('TargetHandle',