diff options
author | Andrew Bartlett <abartlet@samba.org> | 2011-10-15 17:27:30 +1100 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2011-10-18 13:13:32 +1100 |
commit | c77964724d758fcf718d8159b22cd0505ee0a575 (patch) | |
tree | 2c7af81f6d047f806f793aa9ee556451698491bb | |
parent | 02eef4d130fb6e798774d58ac18478c719df847c (diff) | |
download | samba-c77964724d758fcf718d8159b22cd0505ee0a575.tar.gz samba-c77964724d758fcf718d8159b22cd0505ee0a575.tar.bz2 samba-c77964724d758fcf718d8159b22cd0505ee0a575.zip |
gensec: an event context is no longer mandetory
If you do not specify one however, you better know that the modules
you are using do not need one!
Andrew Bartlett
Signed-off-by: Stefan Metzmacher <metze@samba.org>
-rw-r--r-- | auth/gensec/gensec_start.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/auth/gensec/gensec_start.c b/auth/gensec/gensec_start.c index ea54352918..10fcb67b25 100644 --- a/auth/gensec/gensec_start.c +++ b/auth/gensec/gensec_start.c @@ -511,11 +511,6 @@ static NTSTATUS gensec_start(TALLOC_CTX *mem_ctx, struct auth4_context *auth_context, struct gensec_security **gensec_security) { - if (ev == NULL) { - DEBUG(0, ("No event context available!\n")); - return NT_STATUS_INTERNAL_ERROR; - } - (*gensec_security) = talloc_zero(mem_ctx, struct gensec_security); NT_STATUS_HAVE_NO_MEMORY(*gensec_security); @@ -603,11 +598,6 @@ _PUBLIC_ NTSTATUS gensec_server_start(TALLOC_CTX *mem_ctx, { NTSTATUS status; - if (!ev) { - DEBUG(0,("gensec_server_start: no event context given!\n")); - return NT_STATUS_INTERNAL_ERROR; - } - if (!settings) { DEBUG(0,("gensec_server_start: no settings given!\n")); return NT_STATUS_INTERNAL_ERROR; |