diff options
Diffstat (limited to 'auth')
-rw-r--r-- | auth/gensec/gensec.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/auth/gensec/gensec.c b/auth/gensec/gensec.c index 6a747ca3601..f3969b4129b 100644 --- a/auth/gensec/gensec.c +++ b/auth/gensec/gensec.c @@ -329,6 +329,13 @@ _PUBLIC_ NTSTATUS gensec_update_ev(struct gensec_security *gensec_security, struct tevent_req *subreq = NULL; bool ok; + if (gensec_security->subcontext) { + /* + * gensec modules are not allowed to call the sync version. + */ + return NT_STATUS_INTERNAL_ERROR; + } + frame = talloc_stackframe(); if (ev == NULL) { |