auth/gensec: clear the update_busy_ptr in gensec_subcontext_start()
authorStefan Metzmacher <metze@samba.org>
Wed, 14 Jun 2017 14:21:56 +0000 (16:21 +0200)
committerStefan Metzmacher <metze@samba.org>
Sat, 17 Jun 2017 14:48:11 +0000 (16:48 +0200)
This is required to support async subcontexts.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
auth/gensec/gensec_start.c

index c1affd6218afed170cc038242fab87ced2d55be1..6a1293588cd82430c20a1ff434203b537ea40f37 100644 (file)
@@ -616,6 +616,7 @@ _PUBLIC_ NTSTATUS gensec_subcontext_start(TALLOC_CTX *mem_ctx,
        (**gensec_security) = *parent;
        (*gensec_security)->ops = NULL;
        (*gensec_security)->private_data = NULL;
+       (*gensec_security)->update_busy_ptr = NULL;
 
        (*gensec_security)->subcontext = true;
        (*gensec_security)->want_features = parent->want_features;