diff options
author | Stefan Metzmacher <metze@samba.org> | 2011-07-08 10:52:22 +0200 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2011-07-08 14:09:09 +0200 |
commit | 235aedae5030dac138fbaa5726022f5007586cd2 (patch) | |
tree | 5acf9987d1e94a2905d292d7c713198dab1fa170 /source3/include | |
parent | 0342b69f36acdb9418f4b85ed48f3c6b78ef553f (diff) | |
download | samba-235aedae5030dac138fbaa5726022f5007586cd2.tar.gz samba-235aedae5030dac138fbaa5726022f5007586cd2.tar.bz2 samba-235aedae5030dac138fbaa5726022f5007586cd2.zip |
s3:libsmb: don't use the cli->inbuf to store the last error
We keep the raw error in cli->raw_status now, until we fixed all
caller to get the NTSTATUS from the function calls.
metze
Diffstat (limited to 'source3/include')
-rw-r--r-- | source3/include/async_smb.h | 12 | ||||
-rw-r--r-- | source3/include/client.h | 1 |
2 files changed, 1 insertions, 12 deletions
diff --git a/source3/include/async_smb.h b/source3/include/async_smb.h index 1685d4985d..40da862be2 100644 --- a/source3/include/async_smb.h +++ b/source3/include/async_smb.h @@ -22,18 +22,6 @@ struct cli_state; -/* - * Fetch an error out of a NBT packet - */ - -NTSTATUS cli_pull_error(char *buf); - -/* - * Compatibility helper for the sync APIs: Fake NTSTATUS in cli->inbuf - */ - -void cli_set_error(struct cli_state *cli, NTSTATUS status); - struct tevent_req *cli_smb_req_create(TALLOC_CTX *mem_ctx, struct event_context *ev, struct cli_state *cli, diff --git a/source3/include/client.h b/source3/include/client.h index fc591828ae..bd6de4afb9 100644 --- a/source3/include/client.h +++ b/source3/include/client.h @@ -60,6 +60,7 @@ struct cli_state { int protocol; int sec_mode; int rap_error; + NTSTATUS raw_status; /* maybe via NT_STATUS_DOS() */ int privileges; char *desthost; |