Diff for /embedaddon/lighttpd/src/mod_proxy.c between versions 1.1.1.1 and 1.1.1.2

version 1.1.1.1, 2013/10/14 10:32:48 version 1.1.1.2, 2014/06/15 20:20:06
Line 194  SETDEFAULTS_FUNC(mod_proxy_set_defaults) { Line 194  SETDEFAULTS_FUNC(mod_proxy_set_defaults) {
                 { NULL,                        NULL, T_CONFIG_UNSET, T_CONFIG_SCOPE_UNSET }                  { NULL,                        NULL, T_CONFIG_UNSET, T_CONFIG_SCOPE_UNSET }
         };          };
   
        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;
Line 298  SETDEFAULTS_FUNC(mod_proxy_set_defaults) { Line 298  SETDEFAULTS_FUNC(mod_proxy_set_defaults) {
                                         pcv[1].destination = &(df->port);                                          pcv[1].destination = &(df->port);
   
                                         if (0 != config_insert_values_internal(srv, da_host->value, pcv)) {                                          if (0 != config_insert_values_internal(srv, da_host->value, pcv)) {
                                                   df->free((data_unset*) df);
                                                 return HANDLER_ERROR;                                                  return HANDLER_ERROR;
                                         }                                          }
   
Line 309  SETDEFAULTS_FUNC(mod_proxy_set_defaults) { Line 310  SETDEFAULTS_FUNC(mod_proxy_set_defaults) {
                                                                 da_host->key,                                                                  da_host->key,
                                                                 "host");                                                                  "host");
   
                                                   df->free((data_unset*) df);
                                                 return HANDLER_ERROR;                                                  return HANDLER_ERROR;
                                         }                                          }
   
Line 684  static int proxy_demux_response(server *srv, handler_c Line 686  static int proxy_demux_response(server *srv, handler_c
                 }                  }
   
                 /* this should be catched by the b > 0 above */                  /* this should be catched by the b > 0 above */
                assert(r);                force_assert(r);
   
                 hctx->response->used += r;                  hctx->response->used += r;
                 hctx->response->ptr[hctx->response->used - 1] = '\0';                  hctx->response->ptr[hctx->response->used - 1] = '\0';
Line 1256  static handler_t mod_proxy_check_extension(server *srv Line 1258  static handler_t mod_proxy_check_extension(server *srv
                 }                  }
   
                 /* just to be sure */                  /* just to be sure */
                assert(extension->value->used < INT_MAX);                force_assert(extension->value->used < INT_MAX);
   
                 host = (data_proxy *)extension->value->data[0];                  host = (data_proxy *)extension->value->data[0];
   

Removed from v.1.1.1.1  
changed lines
  Added in v.1.1.1.2


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>