From 25f396edfbaa313d63d775a4621245236750ec29 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Tue, 6 Jul 2004 02:20:45 +0000 Subject: r1354: Make it clear that the first gensec_update takes a NULL data_blob. Andrew Bartlett (This used to be commit 842a5dfc1f313b771fef14a484be6eea8c6eedf8) --- source4/librpc/rpc/dcerpc_auth.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'source4/librpc/rpc/dcerpc_auth.c') 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)) { -- cgit