summaryrefslogtreecommitdiff
path: root/source4/libcli/smb2
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2009-12-10 11:24:54 +1100
committerAndrew Tridgell <tridge@samba.org>2009-12-10 17:51:26 +1100
commit498f2b879a38b7b3888fcb2892a9d073417f7d84 (patch)
treeebdf47d79d37cc7976fbc8a738c0bd71a25bb15b /source4/libcli/smb2
parent08e8988bd850de8050cd05aacdcd0e0f78200c7d (diff)
downloadsamba-498f2b879a38b7b3888fcb2892a9d073417f7d84.tar.gz
samba-498f2b879a38b7b3888fcb2892a9d073417f7d84.tar.bz2
samba-498f2b879a38b7b3888fcb2892a9d073417f7d84.zip
s4-libcli: use new GUID functions in libcli
Diffstat (limited to 'source4/libcli/smb2')
-rw-r--r--source4/libcli/smb2/negprot.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/source4/libcli/smb2/negprot.c b/source4/libcli/smb2/negprot.c
index c1f0cf0b24..16dcd1571f 100644
--- a/source4/libcli/smb2/negprot.c
+++ b/source4/libcli/smb2/negprot.c
@@ -68,7 +68,6 @@ NTSTATUS smb2_negprot_recv(struct smb2_request *req, TALLOC_CTX *mem_ctx,
struct smb2_negprot *io)
{
NTSTATUS status;
- enum ndr_err_code ndr_err;
if (!smb2_request_receive(req) ||
smb2_request_is_error(req)) {
@@ -80,10 +79,10 @@ NTSTATUS smb2_negprot_recv(struct smb2_request *req, TALLOC_CTX *mem_ctx,
io->out.security_mode = SVAL(req->in.body, 0x02);
io->out.dialect_revision = SVAL(req->in.body, 0x04);
io->out.reserved = SVAL(req->in.body, 0x06);
- ndr_err = smbcli_pull_guid(req->in.body, 0x08, &io->in.client_guid);
- if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
+ status = smbcli_pull_guid(req->in.body, 0x08, &io->in.client_guid);
+ if (!NT_STATUS_IS_OK(status)) {
smb2_request_destroy(req);
- return NT_STATUS_INTERNAL_ERROR;
+ return status;
}
io->out.capabilities = IVAL(req->in.body, 0x18);
io->out.max_transact_size = IVAL(req->in.body, 0x1C);