diff options
author | Stefan Metzmacher <metze@samba.org> | 2017-05-11 14:22:27 +0200 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2017-07-25 13:51:12 +0200 |
commit | 39353c9a6e3628a670fc9aa130b6eaf05d1083be (patch) | |
tree | 8b8c9f936508c193c57cf5135a409a8c2f2f1aaf /auth | |
parent | a7f401243cb179dc3af6c6084474785ad189307a (diff) | |
download | samba-39353c9a6e3628a670fc9aa130b6eaf05d1083be.tar.gz |
auth/gensec: don't allow gensec_update[_ev] to be called on a subcontext
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
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) { |