diff options
-rw-r--r-- | source3/rpc_server/rpc_server.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source3/rpc_server/rpc_server.c b/source3/rpc_server/rpc_server.c index 5be0e5e07d..9a7ff099da 100644 --- a/source3/rpc_server/rpc_server.c +++ b/source3/rpc_server/rpc_server.c @@ -98,6 +98,12 @@ static int make_server_pipes_struct(TALLOC_CTX *mem_ctx, } strlcpy(p->client_id->addr, client_address, sizeof(p->client_id->addr)); + p->client_id->name = talloc_strdup(p->client_id, client_address); + if (p->client_id->name == NULL) { + TALLOC_FREE(p); + *perrno = ENOMEM; + return -1; + } talloc_set_destructor(p, close_internal_rpc_pipe_hnd); |