1
0
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:
Stefan Metzmacher 2017-05-11 14:22:27 +02:00 committed by Andreas Schneider
parent a7f401243c
commit 39353c9a6e

View File

@ -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) {