diff options
Diffstat (limited to 'source4/librpc/rpc/dcerpc_smb.c')
-rw-r--r-- | source4/librpc/rpc/dcerpc_smb.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/source4/librpc/rpc/dcerpc_smb.c b/source4/librpc/rpc/dcerpc_smb.c index fc71a47cf4..da43a8a92b 100644 --- a/source4/librpc/rpc/dcerpc_smb.c +++ b/source4/librpc/rpc/dcerpc_smb.c @@ -354,6 +354,7 @@ NTSTATUS dcerpc_pipe_open_smb(struct dcerpc_pipe **p, /* fill in the transport methods */ + (*p)->transport.transport = NCACN_NP; (*p)->transport.private = NULL; (*p)->transport.full_request = smb_full_request; (*p)->transport.secondary_request = smb_secondary_request; @@ -375,3 +376,17 @@ NTSTATUS dcerpc_pipe_open_smb(struct dcerpc_pipe **p, return NT_STATUS_OK; } + +/* + return the SMB tree used for a dcerpc over SMB pipe +*/ +struct cli_tree *dcerpc_smb_tree(struct dcerpc_pipe *p) +{ + struct smb_private *smb = p->transport.private; + + if (p->transport.transport != NCACN_NP) { + return NULL; + } + + return smb->tree; +} |