auth/spnego: Use talloc_get_type_abort() in gsensec_spnego_update_out()
authorAndreas Schneider <asn@samba.org>
Wed, 19 Jul 2017 09:05:32 +0000 (11:05 +0200)
committerAndreas Schneider <asn@cryptomilk.org>
Tue, 25 Jul 2017 11:51:11 +0000 (13:51 +0200)
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
auth/gensec/spnego.c

index 541843b..2872e7d 100644 (file)
@@ -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;