diff options
Diffstat (limited to 'source3/rpc_server/rpc_ncacn_np.c')
-rw-r--r-- | source3/rpc_server/rpc_ncacn_np.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/source3/rpc_server/rpc_ncacn_np.c b/source3/rpc_server/rpc_ncacn_np.c index 896a53dcc0..af21ec2aad 100644 --- a/source3/rpc_server/rpc_ncacn_np.c +++ b/source3/rpc_server/rpc_ncacn_np.c @@ -762,6 +762,13 @@ static NTSTATUS rpc_pipe_open_external(TALLOC_CTX *mem_ctx, goto done; } + result->binding_handle = rpccli_bh_create(result); + if (result->binding_handle == NULL) { + status = NT_STATUS_NO_MEMORY; + DEBUG(0, ("Failed to create binding handle.\n")); + goto done; + } + result->auth = talloc_zero(result, struct pipe_auth_data); if (!result->auth) { status = NT_STATUS_NO_MEMORY; @@ -778,9 +785,10 @@ static NTSTATUS rpc_pipe_open_external(TALLOC_CTX *mem_ctx, status = rpc_pipe_bind(result, auth); if (!NT_STATUS_IS_OK(status)) { - DEBUG(0, ("Failed to bind spoolss pipe.\n")); + DEBUG(0, ("Failed to bind external pipe.\n")); goto done; } + done: if (!NT_STATUS_IS_OK(status)) { TALLOC_FREE(result); |