Commit e66c5eb5 authored by Nils Goroll's avatar Nils Goroll

avoid TRUST_ME in shard director

parent 95ab1c57
...@@ -293,8 +293,8 @@ shardcfg_hashcircle(struct sharddir *shardd, VCL_INT replicas) ...@@ -293,8 +293,8 @@ shardcfg_hashcircle(struct sharddir *shardd, VCL_INT replicas)
static void static void
shardcfg_backend_free(struct shard_backend *f) shardcfg_backend_free(struct shard_backend *f)
{ {
if (f->ident) if (f->freeptr)
free (TRUST_ME(f->ident)); free (f->freeptr);
memset(f, 0, sizeof(*f)); memset(f, 0, sizeof(*f));
} }
......
...@@ -57,7 +57,10 @@ struct shard_circlepoint { ...@@ -57,7 +57,10 @@ struct shard_circlepoint {
struct shard_backend { struct shard_backend {
VCL_BACKEND backend; VCL_BACKEND backend;
const char *ident; // XXX COPY IN ! union {
const char *ident;
void *freeptr;
};
VCL_DURATION rampup; VCL_DURATION rampup;
uint32_t canon_point; uint32_t canon_point;
}; };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment