From 3453bc7b1108390354c0825ee6b2b0bb28fca2f3 Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Fri, 3 Sep 2010 16:27:47 -0400 Subject: s3-dcerpc: make auth context opaque MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This way we always double check in advance that the context is of the right type with talloc_get_type_abort instead of potentially accessing random memory by addressing the wrong structure in the union. Signed-off-by: Günther Deschner --- source3/include/ntdomain.h | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'source3/include/ntdomain.h') diff --git a/source3/include/ntdomain.h b/source3/include/ntdomain.h index 9fdb794fd3..b0a462399f 100644 --- a/source3/include/ntdomain.h +++ b/source3/include/ntdomain.h @@ -101,12 +101,7 @@ struct pipe_auth_data { enum dcerpc_AuthType auth_type; enum dcerpc_AuthLevel auth_level; - union { - struct schannel_state *schannel_auth; - struct auth_ntlmssp_state *auth_ntlmssp_state; - struct gse_context *gssapi_state; - struct spnego_context *spnego_state; - } a_u; + void *auth_ctx; /* Only the client code uses these 3 for now */ char *domain; -- cgit