summaryrefslogtreecommitdiff
path: root/source4/libcli/smb2/negprot.c
diff options
context:
space:
mode:
Diffstat (limited to 'source4/libcli/smb2/negprot.c')
-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);