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:
parent
cdb9625dbd
commit
54e904e780
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue