summaryrefslogtreecommitdiff
path: root/source3/rpc_server
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2008-10-25 15:23:36 +0200
committerVolker Lendecke <vl@samba.org>2008-10-25 15:23:36 +0200
commitf87219d6e6e049a6d233696d126ea231cbbc1672 (patch)
tree585fce98a2f0ec1cf00db7a4cb139ab950a6399d /source3/rpc_server
parent1ad54998a971b58f870263b4b8d6e051d627c79e (diff)
downloadsamba-f87219d6e6e049a6d233696d126ea231cbbc1672.tar.gz
samba-f87219d6e6e049a6d233696d126ea231cbbc1672.tar.bz2
samba-f87219d6e6e049a6d233696d126ea231cbbc1672.zip
Move the is_known_pipename check into np_open
Diffstat (limited to 'source3/rpc_server')
-rw-r--r--source3/rpc_server/srv_pipe_hnd.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/source3/rpc_server/srv_pipe_hnd.c b/source3/rpc_server/srv_pipe_hnd.c
index aaa355790d..822d50aa54 100644
--- a/source3/rpc_server/srv_pipe_hnd.c
+++ b/source3/rpc_server/srv_pipe_hnd.c
@@ -925,6 +925,12 @@ NTSTATUS np_open(struct smb_request *smb_req, struct connection_struct *conn,
struct files_struct *fsp;
struct pipes_struct *p;
+ /* See if it is one we want to handle. */
+
+ if (!is_known_pipename(name)) {
+ return NT_STATUS_OBJECT_NAME_NOT_FOUND;
+ }
+
status = file_new(smb_req, conn, &fsp);
if (!NT_STATUS_IS_OK(status)) {
DEBUG(0, ("file_new failed: %s\n", nt_errstr(status)));