mirror of
https://github.com/samba-team/samba.git
synced 2024-12-22 13:34:15 +03:00
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>
This commit is contained in:
parent
a7f401243c
commit
39353c9a6e
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user