[telepathy-gabble/master] set_port_access_control_param: port is on 16 bits so we should check that it's not greater than G_MAXUINT16
Guillaume Desmottes
guillaume.desmottes at collabora.co.uk
Thu May 21 04:27:26 PDT 2009
---
src/tube-stream.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/tube-stream.c b/src/tube-stream.c
index 168c99b..e0afd15 100644
--- a/src/tube-stream.c
+++ b/src/tube-stream.c
@@ -762,7 +762,7 @@ set_port_access_control_param (GValue *access_control_param,
}
tmp = strtoul (port_str, &endptr, 10);
- if (!endptr || *endptr || tmp > G_MAXUINT32)
+ if (!endptr || *endptr || tmp > G_MAXUINT16)
{
DEBUG ("invalid port: %s", port_str);
return FALSE;
--
1.5.6.5
More information about the telepathy-commits
mailing list