Commit 65a219f0 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Eliminate need for TRUST_ME()

parent 4f656638
......@@ -131,9 +131,12 @@ setup_sweep(VRT_CTX, struct acl_sweep *asw, VCL_IP ip0, VCL_IP ip1,
}
asw->this = asw->reset;
asw->probe = VSA_Clone(ip0);
/* Dont try this at home */
asw->probe = malloc(vsa_suckaddr_len);
AN(asw->probe);
memcpy(asw->probe, ip0, vsa_suckaddr_len);
(void)VSA_GetPtr(asw->probe, &ptr);
asw->probe_p = TRUST_ME(ptr);
asw->probe_p = ((uint8_t*)(asw->probe)) + (ptr - (uint8_t*)asw->probe);
asw->step = step;
......
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