From d9ba87c84c7461e3173ac977e3444849d7fab366 Mon Sep 17 00:00:00 2001 From: Sascha Schumann Date: Wed, 1 Nov 2000 19:26:57 +0000 Subject: [PATCH] Our context's lifetime differs from the lifetime of a filter's context, so don't set the filter's context in the INIT_CTX macro. --- sapi/apache2filter/sapi_apache2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sapi/apache2filter/sapi_apache2.c b/sapi/apache2filter/sapi_apache2.c index d18de3dbe4..1a784cf528 100644 --- a/sapi/apache2filter/sapi_apache2.c +++ b/sapi/apache2filter/sapi_apache2.c @@ -228,7 +228,7 @@ module MODULE_VAR_EXPORT php4_module; #define INIT_CTX \ if (ctx == NULL) { \ /* Initialize filter context */ \ - SG(server_context) = f->ctx = ctx = apr_pcalloc(f->r->pool, sizeof(*ctx)); \ + SG(server_context) = ctx = apr_pcalloc(f->r->pool, sizeof(*ctx)); \ ctx->bb = ap_brigade_create(f->c->pool); \ } -- 2.50.1