mirror of
https://github.com/samba-team/samba.git
synced 2025-12-16 00:23:52 +03:00
Merge of SMB_ASSERT.
This commit is contained in:
@@ -1253,8 +1253,9 @@ BOOL cli_nt_session_open(struct cli_state *cli, const int pipe_idx)
|
|||||||
|
|
||||||
SMB_ASSERT(cli->nt_pipe_fnum == 0);
|
SMB_ASSERT(cli->nt_pipe_fnum == 0);
|
||||||
|
|
||||||
if ( (pipe_idx < 0) || (pipe_idx >= PI_MAX_PIPES) )
|
/* The pipe index must fall within our array */
|
||||||
return False;
|
|
||||||
|
SMB_ASSERT((pipe_idx >= 0) && (pipe_idx < PI_MAX_PIPES));
|
||||||
|
|
||||||
if (cli->capabilities & CAP_NT_SMBS) {
|
if (cli->capabilities & CAP_NT_SMBS) {
|
||||||
if ((fnum = cli_nt_create(cli, &pipe_names[pipe_idx].client_pipe[5], DESIRED_ACCESS_PIPE)) == -1) {
|
if ((fnum = cli_nt_create(cli, &pipe_names[pipe_idx].client_pipe[5], DESIRED_ACCESS_PIPE)) == -1) {
|
||||||
|
|||||||
Reference in New Issue
Block a user