|
|
| version 1.1.1.1, 2013/10/14 10:32:48 | version 1.1.1.2, 2014/06/15 20:20:06 |
|---|---|
| Line 85 typedef struct { | Line 85 typedef struct { |
| static handler_ctx * cgi_handler_ctx_init(void) { | static handler_ctx * cgi_handler_ctx_init(void) { |
| handler_ctx *hctx = calloc(1, sizeof(*hctx)); | handler_ctx *hctx = calloc(1, sizeof(*hctx)); |
| assert(hctx); | force_assert(hctx); |
| hctx->response = buffer_init(); | hctx->response = buffer_init(); |
| hctx->response_header = buffer_init(); | hctx->response_header = buffer_init(); |
| Line 107 INIT_FUNC(mod_cgi_init) { | Line 107 INIT_FUNC(mod_cgi_init) { |
| p = calloc(1, sizeof(*p)); | p = calloc(1, sizeof(*p)); |
| assert(p); | force_assert(p); |
| p->tmp_buf = buffer_init(); | p->tmp_buf = buffer_init(); |
| p->parse_response = buffer_init(); | p->parse_response = buffer_init(); |
| Line 157 SETDEFAULTS_FUNC(mod_fastcgi_set_defaults) { | Line 157 SETDEFAULTS_FUNC(mod_fastcgi_set_defaults) { |
| if (!p) return HANDLER_ERROR; | if (!p) return HANDLER_ERROR; |
| p->config_storage = calloc(1, srv->config_context->used * sizeof(specific_config *)); | p->config_storage = calloc(1, srv->config_context->used * sizeof(plugin_config *)); |
| for (i = 0; i < srv->config_context->used; i++) { | for (i = 0; i < srv->config_context->used; i++) { |
| plugin_config *s; | plugin_config *s; |
| s = calloc(1, sizeof(plugin_config)); | s = calloc(1, sizeof(plugin_config)); |
| assert(s); | force_assert(s); |
| s->cgi = array_init(); | s->cgi = array_init(); |
| s->execute_x_only = 0; | s->execute_x_only = 0; |