summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2011-02-09 06:56:25 +0100
committerVolker Lendecke <vlendec@samba.org>2011-02-09 12:30:50 +0100
commitd04c2c575a545dbcc3153b7075613ef6897587cc (patch)
tree1fbe611fe5e94350128045427f9c638334a575e8 /source3
parentf915dd5dd4895e1c67b544da8041beefe395c8ef (diff)
downloadsamba-d04c2c575a545dbcc3153b7075613ef6897587cc.tar.gz
samba-d04c2c575a545dbcc3153b7075613ef6897587cc.tar.bz2
samba-d04c2c575a545dbcc3153b7075613ef6897587cc.zip
s3:rpc_server: create binding_handle in rpc_pipe_open_external()
metze Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Wed Feb 9 12:30:50 CET 2011 on sn-devel-104
Diffstat (limited to 'source3')
-rw-r--r--source3/rpc_server/rpc_ncacn_np.c10
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);