From ed1d3d927a59b3ed5ed583fddfd659aeb2d8bba0 Mon Sep 17 00:00:00 2001 From: chaizhenhua Date: Sun, 27 Jan 2013 08:05:46 +0800 Subject: [PATCH] Fixed Action Drop not work --- nginx/modsecurity/ngx_http_modsecurity.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/nginx/modsecurity/ngx_http_modsecurity.c b/nginx/modsecurity/ngx_http_modsecurity.c index 668a9616..235e1701 100644 --- a/nginx/modsecurity/ngx_http_modsecurity.c +++ b/nginx/modsecurity/ngx_http_modsecurity.c @@ -668,6 +668,9 @@ ngx_http_modsecurity_create_ctx(ngx_http_request_t *r) if (ctx->brigade == NULL) { return NULL; } + + apr_table_setn(ctx->req->notes, NOTE_NGINX_REQUEST_CTX, (const char *) ctx); + return ctx; }