summaryrefslogtreecommitdiffstats
path: root/source
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2004-07-06 02:20:45 +0000
committerAndrew Bartlett <abartlet@samba.org>2004-07-06 02:20:45 +0000
commit893360ea01fe5e68017b33d7ea10264913925eee (patch)
treeb5d436c5a21bf0eb1cfdf3d82198b8b6ee5e0378 /source
parent07b17e0e5b98bb90d0c98c02b49e89e275e1abf0 (diff)
downloadsamba-893360ea01fe5e68017b33d7ea10264913925eee.tar.gz
samba-893360ea01fe5e68017b33d7ea10264913925eee.tar.xz
samba-893360ea01fe5e68017b33d7ea10264913925eee.zip
r1354: Make it clear that the first gensec_update takes a NULL data_blob.
Andrew Bartlett
Diffstat (limited to 'source')
-rw-r--r--source/librpc/rpc/dcerpc_auth.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/source/librpc/rpc/dcerpc_auth.c b/source/librpc/rpc/dcerpc_auth.c
index 07601e47246..92f1a884855 100644
--- a/source/librpc/rpc/dcerpc_auth.c
+++ b/source/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)) {