diff options
author | Jeremy Allison <jra@samba.org> | 2001-12-18 02:09:57 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2001-12-18 02:09:57 +0000 |
commit | d5fdb1f096e8db3e9cf7a65ddb75f7cafd1958c0 (patch) | |
tree | ab2041bc4bf0962cd6e99584467d4b30923126d2 | |
parent | 9f2b6a07429da5dec59e562fa5489b8079978677 (diff) | |
download | samba-d5fdb1f096e8db3e9cf7a65ddb75f7cafd1958c0.tar.gz |
Return NT_STATUS_OBJECT_NOT_FOUND or ERRbadpipe if pipe name not found.
Jeremy.
-rw-r--r-- | source/smbd/nttrans.c | 2 | ||||
-rw-r--r-- | source/smbd/pipes.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/source/smbd/nttrans.c b/source/smbd/nttrans.c index 2c3ac06f3c8..457b0451935 100644 --- a/source/smbd/nttrans.c +++ b/source/smbd/nttrans.c @@ -483,7 +483,7 @@ static int nt_open_pipe(char *fname, connection_struct *conn, break; if ( known_nt_pipes[i] == NULL ) - return(ERROR_DOS(ERRSRV,ERRaccess)); + return(ERROR_BOTH(NT_STATUS_OBJECT_NAME_NOT_FOUND,ERRDOS,ERRbadpipe)); /* Strip \\ off the name. */ fname++; diff --git a/source/smbd/pipes.c b/source/smbd/pipes.c index 9a911ed0145..cd8a56a5d2a 100644 --- a/source/smbd/pipes.c +++ b/source/smbd/pipes.c @@ -67,7 +67,7 @@ int reply_open_pipe_and_X(connection_struct *conn, break; if (pipe_names[i].client_pipe == NULL) - return(ERROR_DOS(ERRSRV,ERRaccess)); + return(ERROR_BOTH(NT_STATUS_OBJECT_NAME_NOT_FOUND,ERRDOS,ERRbadpipe)); /* Strip \PIPE\ off the name. */ pstrcpy(fname, pipe_name + PIPELEN); |