summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/libsmb/clierror.c9
-rw-r--r--source3/libsmb/proto.h1
2 files changed, 0 insertions, 10 deletions
diff --git a/source3/libsmb/clierror.c b/source3/libsmb/clierror.c
index 3853490493..e027624de7 100644
--- a/source3/libsmb/clierror.c
+++ b/source3/libsmb/clierror.c
@@ -340,15 +340,6 @@ NTSTATUS cli_get_nt_error(struct cli_state *cli)
}
}
-/* Push an error code into the inbuf to be returned on the next
- * query. */
-
-void cli_set_nt_error(struct cli_state *cli, NTSTATUS status)
-{
- SSVAL(cli->inbuf,smb_flg2, SVAL(cli->inbuf,smb_flg2)|FLAGS2_32_BIT_ERROR_CODES);
- SIVAL(cli->inbuf, smb_rcls, NT_STATUS_V(status));
-}
-
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 a2931592c9..c7e3bc7bcd 100644
--- a/source3/libsmb/proto.h
+++ b/source3/libsmb/proto.h
@@ -191,7 +191,6 @@ bool cli_is_error(struct cli_state *cli);
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);
bool cli_state_is_connected(struct cli_state *cli);
/* The following definitions come from libsmb/clifile.c */