Commit 54e904e7 authored by Rob Shearman's avatar Rob Shearman Committed by Alexandre Julliard

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.
parent cdb9625d
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment