summaryrefslogtreecommitdiff
path: root/source4/librpc
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2004-02-10 11:19:58 +0000
committerAndrew Tridgell <tridge@samba.org>2004-02-10 11:19:58 +0000
commite159cc7e05a46fcc652873b382b848f5d524d8b6 (patch)
treed39c7b44ddd32a59eb7e18fd100664e781e3563d /source4/librpc
parent078cced5ec1026432f5df275a7023db70a62693e (diff)
downloadsamba-e159cc7e05a46fcc652873b382b848f5d524d8b6.tar.gz
samba-e159cc7e05a46fcc652873b382b848f5d524d8b6.tar.bz2
samba-e159cc7e05a46fcc652873b382b848f5d524d8b6.zip
don't always use the same schannel context number
(This used to be commit 396e0757122614211b535b140d9365ac7b8b880d)
Diffstat (limited to 'source4/librpc')
-rw-r--r--source4/librpc/rpc/dcerpc_schannel.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/librpc/rpc/dcerpc_schannel.c b/source4/librpc/rpc/dcerpc_schannel.c
index 9ef16a0d5c..7727c5e436 100644
--- a/source4/librpc/rpc/dcerpc_schannel.c
+++ b/source4/librpc/rpc/dcerpc_schannel.c
@@ -159,7 +159,7 @@ NTSTATUS dcerpc_bind_auth_schannel(struct dcerpc_pipe *p,
}
p->auth_info->auth_pad_length = 0;
p->auth_info->auth_reserved = 0;
- p->auth_info->auth_context_id = 1;
+ p->auth_info->auth_context_id = random();
p->security_state = NULL;
p->auth_info->credentials = data_blob_talloc(p->mem_ctx,