mirror of
https://github.com/samba-team/samba.git
synced 2025-03-03 12:58:35 +03:00
Return NT_STATUS_OBJECT_NOT_FOUND or ERRbadpipe if pipe name not found.
Jeremy. (This used to be commit d5fdb1f096e8db3e9cf7a65ddb75f7cafd1958c0)
This commit is contained in:
parent
0558e2c402
commit
2a6eeff2a7
@ -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++;
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user