summaryrefslogtreecommitdiff
path: root/auth/gensec
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2017-07-19 11:05:32 +0200
committerAndreas Schneider <asn@cryptomilk.org>2017-07-25 13:51:11 +0200
commit97788f4a75ec0ade93c69c127fefcedeb08a1fcf (patch)
tree600e0b8ab8fd59cb6872a2e928a4d186f85172e7 /auth/gensec
parent62ffe20fcbbd1a78922e0e9a02cf151362ee1de8 (diff)
downloadsamba-97788f4a75ec0ade93c69c127fefcedeb08a1fcf.tar.gz
auth/spnego: Use talloc_get_type_abort() in gsensec_spnego_update_out()
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'auth/gensec')
-rw-r--r--auth/gensec/spnego.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/auth/gensec/spnego.c b/auth/gensec/spnego.c
index 541843b180d..2872e7d82e6 100644
--- a/auth/gensec/spnego.c
+++ b/auth/gensec/spnego.c
@@ -2072,7 +2072,9 @@ static NTSTATUS gensec_spnego_update_out(struct gensec_security *gensec_security
TALLOC_CTX *out_mem_ctx,
DATA_BLOB *_out)
{
- struct spnego_state *spnego_state = (struct spnego_state *)gensec_security->private_data;
+ struct spnego_state *spnego_state =
+ talloc_get_type_abort(gensec_security->private_data,
+ struct spnego_state);
DATA_BLOB out = data_blob_null;
bool ok;