s3-auth Fix talloc parent for s4 event context in auth_samba4
authorAndrew Bartlett <abartlet@samba.org>
Mon, 26 Dec 2011 11:59:17 +0000 (22:59 +1100)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 28 Dec 2011 11:39:19 +0000 (22:39 +1100)
source3/auth/auth_samba4.c

index 21c7b44eedf2a503458881a9a9262f64c29f99b0..119099d5dd242e73333b323c9e05ab769bd5c054 100644 (file)
@@ -114,7 +114,7 @@ static NTSTATUS prepare_gensec(TALLOC_CTX *mem_ctx,
                TALLOC_FREE(frame);
                return NT_STATUS_INVALID_SERVER_STATE;
        }
-       event_ctx = s4_event_context_init(mem_ctx);
+       event_ctx = s4_event_context_init(frame);
        if (event_ctx == NULL) {
                DEBUG(1, ("s4_event_context_init failed\n"));
                TALLOC_FREE(frame);