Browse Source

Deep copy json method in create_json_params in case a non-standard request is made

master
ckolivas 10 years ago
parent
commit
999f46ed1d
  1. 2
      src/stratifier.c

2
src/stratifier.c

@ -3145,7 +3145,7 @@ static json_params_t
{ {
json_params_t *jp = ckalloc(sizeof(json_params_t)); json_params_t *jp = ckalloc(sizeof(json_params_t));
jp->method = json_copy(method); jp->method = json_deep_copy(method);
jp->params = json_deep_copy(params); jp->params = json_deep_copy(params);
jp->id_val = json_deep_copy(id_val); jp->id_val = json_deep_copy(id_val);
jp->client_id = client_id; jp->client_id = client_id;

Loading…
Cancel
Save