summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2009-12-10 11:25:13 +1100
committerAndrew Tridgell <tridge@samba.org>2009-12-10 17:51:27 +1100
commitf01ea8bf589a876bab14907d1ec6a998c23f87c9 (patch)
treef83fcd9a410ef45d960ff278dd989bd269ac8802 /source4
parent498f2b879a38b7b3888fcb2892a9d073417f7d84 (diff)
downloadsamba-f01ea8bf589a876bab14907d1ec6a998c23f87c9.tar.gz
samba-f01ea8bf589a876bab14907d1ec6a998c23f87c9.tar.bz2
samba-f01ea8bf589a876bab14907d1ec6a998c23f87c9.zip
s4-smb2: use new GUID function in smb2 negprot
Diffstat (limited to 'source4')
-rw-r--r--source4/smb_server/smb2/negprot.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/source4/smb_server/smb2/negprot.c b/source4/smb_server/smb2/negprot.c
index 5283a0db6e..faf025a1f8 100644
--- a/source4/smb_server/smb2/negprot.c
+++ b/source4/smb_server/smb2/negprot.c
@@ -197,7 +197,6 @@ void smb2srv_negprot_recv(struct smb2srv_request *req)
{
struct smb2_negprot *io;
int i;
- enum ndr_err_code ndr_err;
if (req->in.body_size < 0x26) {
smbsrv_terminate_connection(req->smb_conn, "Bad body size in SMB2 negprot");
@@ -215,8 +214,8 @@ void smb2srv_negprot_recv(struct smb2srv_request *req)
io->in.security_mode = SVAL(req->in.body, 0x04);
io->in.reserved = SVAL(req->in.body, 0x06);
io->in.capabilities = IVAL(req->in.body, 0x08);
- ndr_err = smbcli_pull_guid(req->in.body, 0xC, &io->in.client_guid);
- if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
+ req->status = smbcli_pull_guid(req->in.body, 0xC, &io->in.client_guid);
+ if (!NT_STATUS_IS_OK(req->status)) {
smbsrv_terminate_connection(req->smb_conn, "Bad GUID in SMB2 negprot");
talloc_free(req);
return;