summaryrefslogtreecommitdiff
path: root/source4/client/client.c
diff options
context:
space:
mode:
Diffstat (limited to 'source4/client/client.c')
-rw-r--r--source4/client/client.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/source4/client/client.c b/source4/client/client.c
index a1a055c9be..4ce686cdcf 100644
--- a/source4/client/client.c
+++ b/source4/client/client.c
@@ -2552,7 +2552,7 @@ static BOOL browse_host(const char *query_host)
binding = talloc_asprintf(mem_ctx, "ncacn_np:%s", query_host);
- status = dcerpc_pipe_connect(&p, binding,
+ status = dcerpc_pipe_connect(mem_ctx, &p, binding,
DCERPC_SRVSVC_UUID,
DCERPC_SRVSVC_VERSION,
cmdline_credentials);
@@ -2562,7 +2562,6 @@ static BOOL browse_host(const char *query_host)
talloc_free(mem_ctx);
return False;
}
- talloc_steal(mem_ctx, p);
r.in.server_unc = talloc_asprintf(mem_ctx,"\\\\%s",dcerpc_server_name(p));
r.in.level = 1;