don't always use the same schannel context number
[samba.git] / source4 / librpc / rpc / dcerpc_schannel.c
index 9ef16a0d5cdb40f2b3fcebc4bb63cb1d09891587..7727c5e4369785569367a7f0d9f5b1ceea13a979 100644 (file)
@@ -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,