gensec: an event context is no longer mandetory
authorAndrew Bartlett <abartlet@samba.org>
Sat, 15 Oct 2011 06:27:30 +0000 (17:27 +1100)
committerAndrew Bartlett <abartlet@samba.org>
Tue, 18 Oct 2011 02:13:32 +0000 (13:13 +1100)
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>
auth/gensec/gensec_start.c

index ea54352918b3e5586292f48452a596b74f9a5849..10fcb67b255de32a276fb1d9e84279f13789b78b 100644 (file)
@@ -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;