diff options
-rw-r--r-- | source3/libsmb/clierror.c | 12 | ||||
-rw-r--r-- | source3/libsmb/proto.h | 1 |
2 files changed, 0 insertions, 13 deletions
diff --git a/source3/libsmb/clierror.c b/source3/libsmb/clierror.c index 145ce15c6f..3853490493 100644 --- a/source3/libsmb/clierror.c +++ b/source3/libsmb/clierror.c @@ -349,18 +349,6 @@ void cli_set_nt_error(struct cli_state *cli, NTSTATUS status) SIVAL(cli->inbuf, smb_rcls, NT_STATUS_V(status)); } -/* Reset an error. */ - -void cli_reset_error(struct cli_state *cli) -{ - if (SVAL(cli->inbuf,smb_flg2) & FLAGS2_32_BIT_ERROR_CODES) { - SIVAL(cli->inbuf, smb_rcls, NT_STATUS_V(NT_STATUS_OK)); - } else { - SCVAL(cli->inbuf,smb_rcls,0); - SSVAL(cli->inbuf,smb_err,0); - } -} - bool cli_state_is_connected(struct cli_state *cli) { if (cli == NULL) { diff --git a/source3/libsmb/proto.h b/source3/libsmb/proto.h index 923dd38f95..a2931592c9 100644 --- a/source3/libsmb/proto.h +++ b/source3/libsmb/proto.h @@ -192,7 +192,6 @@ bool cli_is_nt_error(struct cli_state *cli); bool cli_is_dos_error(struct cli_state *cli); NTSTATUS cli_get_nt_error(struct cli_state *cli); void cli_set_nt_error(struct cli_state *cli, NTSTATUS status); -void cli_reset_error(struct cli_state *cli); bool cli_state_is_connected(struct cli_state *cli); /* The following definitions come from libsmb/clifile.c */ |