summaryrefslogtreecommitdiff
path: root/source4/librpc/rpc
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2004-07-06 02:20:45 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:56:52 -0500
commit25f396edfbaa313d63d775a4621245236750ec29 (patch)
treec514aef1947168e3384d9717929225aa3972f655 /source4/librpc/rpc
parent674ad2378942ea053e17f6d2b21c9d332145aa8c (diff)
downloadsamba-25f396edfbaa313d63d775a4621245236750ec29.tar.gz
samba-25f396edfbaa313d63d775a4621245236750ec29.tar.bz2
samba-25f396edfbaa313d63d775a4621245236750ec29.zip
r1354: Make it clear that the first gensec_update takes a NULL data_blob.
Andrew Bartlett (This used to be commit 842a5dfc1f313b771fef14a484be6eea8c6eedf8)
Diffstat (limited to 'source4/librpc/rpc')
-rw-r--r--source4/librpc/rpc/dcerpc_auth.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/source4/librpc/rpc/dcerpc_auth.c b/source4/librpc/rpc/dcerpc_auth.c
index 07601e4724..92f1a88485 100644
--- a/source4/librpc/rpc/dcerpc_auth.c
+++ b/source4/librpc/rpc/dcerpc_auth.c
@@ -50,6 +50,7 @@ NTSTATUS dcerpc_bind_auth(struct dcerpc_pipe *p, uint8_t auth_type,
NTSTATUS status;
TALLOC_CTX *mem_ctx;
DATA_BLOB credentials;
+ DATA_BLOB null_data_blob = data_blob(NULL, 0);
mem_ctx = talloc_init("dcerpc_bind_auth");
if (!mem_ctx) {
@@ -79,7 +80,7 @@ NTSTATUS dcerpc_bind_auth(struct dcerpc_pipe *p, uint8_t auth_type,
p->security_state.auth_info->auth_pad_length = 0;
p->security_state.auth_info->auth_reserved = 0;
p->security_state.auth_info->auth_context_id = random();
- p->security_state.auth_info->credentials = data_blob(NULL, 0);
+ p->security_state.auth_info->credentials = null_data_blob;
if (p->flags & DCERPC_SEAL) {
p->security_state.auth_info->auth_level = DCERPC_AUTH_LEVEL_PRIVACY;
@@ -90,7 +91,7 @@ NTSTATUS dcerpc_bind_auth(struct dcerpc_pipe *p, uint8_t auth_type,
}
status = gensec_update(p->security_state.generic_state, mem_ctx,
- p->security_state.auth_info->credentials,
+ null_data_blob,
&credentials);
if (!NT_STATUS_EQUAL(status, NT_STATUS_MORE_PROCESSING_REQUIRED)) {