rpcrt4: Fix crash calculation of tower size in rpcrt4_ncalrpc_get_top_of_tower.

The size depends on the length of the endpoint string, not the network
address string.
This commit is contained in:
Rob Shearman 2008-08-10 18:23:31 +01:00 committed by Alexandre Julliard
parent cdb9625dbd
commit 54e904e780
1 changed files with 1 additions and 1 deletions

View File

@ -677,7 +677,7 @@ static size_t rpcrt4_ncalrpc_get_top_of_tower(unsigned char *tower_data,
TRACE("(%p, %s, %s)\n", tower_data, networkaddr, endpoint);
endpoint_size = strlen(networkaddr) + 1;
endpoint_size = strlen(endpoint) + 1;
size = sizeof(*pipe_floor) + endpoint_size;
if (!tower_data)