diff options
author | Andrew Tridgell <tridge@samba.org> | 2009-12-10 14:31:52 +1100 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2009-12-10 17:51:28 +1100 |
commit | 33cbe9c6310a7853a0189cd17b0f6c26f208cf16 (patch) | |
tree | 5a9ae007729250327ed32690da268f6567709c6d /source4/smb_server/smb2 | |
parent | 1b20002cc246f6bab6fe2369412bd4c65311785f (diff) | |
download | samba-33cbe9c6310a7853a0189cd17b0f6c26f208cf16.tar.gz samba-33cbe9c6310a7853a0189cd17b0f6c26f208cf16.tar.bz2 samba-33cbe9c6310a7853a0189cd17b0f6c26f208cf16.zip |
s4-server: use GUID_to_ndr_blob() in cldap and smb servers
Diffstat (limited to 'source4/smb_server/smb2')
-rw-r--r-- | source4/smb_server/smb2/negprot.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/source4/smb_server/smb2/negprot.c b/source4/smb_server/smb2/negprot.c index faf025a1f8..260822f2c5 100644 --- a/source4/smb_server/smb2/negprot.c +++ b/source4/smb_server/smb2/negprot.c @@ -153,7 +153,6 @@ static NTSTATUS smb2srv_negprot_backend(struct smb2srv_request *req, struct smb2 static void smb2srv_negprot_send(struct smb2srv_request *req, struct smb2_negprot *io) { NTSTATUS status; - enum ndr_err_code ndr_err; if (NT_STATUS_IS_ERR(req->status)) { smb2srv_send_error(req, req->status); /* TODO: is this correct? */ @@ -170,8 +169,8 @@ static void smb2srv_negprot_send(struct smb2srv_request *req, struct smb2_negpro SSVAL(req->out.body, 0x02, io->out.security_mode); SIVAL(req->out.body, 0x04, io->out.dialect_revision); SIVAL(req->out.body, 0x06, io->out.reserved); - ndr_err = smbcli_push_guid(req->out.body, 0x08, &io->out.server_guid); - if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) { + status = smbcli_push_guid(req->out.body, 0x08, &io->out.server_guid); + if (!NT_STATUS_IS_OK(status)) { smbsrv_terminate_connection(req->smb_conn, nt_errstr(status)); talloc_free(req); return; |