diff --git a/os/xdmcp.c b/os/xdmcp.c index cf9558679..c1d650d46 100644 --- a/os/xdmcp.c +++ b/os/xdmcp.c @@ -490,6 +490,8 @@ XdmcpRegisterConnection ( return; } } + if (ConnectionAddresses.length + 1 == 256) + return; newAddress = xalloc (addrlen * sizeof (CARD8)); if (!newAddress) return;