state->state = DHS_INFORM;
free(state->offer);
state->offer = NULL;
+ state->offer_len = 0;
if (ifo->req_addr.s_addr == INADDR_ANY) {
ia = ipv4_iffindaddr(ifp, NULL, NULL);
return;
}
}
- memcpy(state->offer, bootp, bootp_len);
state->offer_len = bootp_len;
+ memcpy(state->offer, bootp, bootp_len);
bootp_copied = true;
if (ifp->ctx->options & DHCPCD_TEST) {
free(state->old);
return;
}
}
- memcpy(state->offer, bootp, bootp_len);
state->offer_len = bootp_len;
+ memcpy(state->offer, bootp, bootp_len);
}
lease->frominfo = 0;
clock_gettime(CLOCK_MONOTONIC, &state->started);
free(state->offer);
state->offer = NULL;
+ state->offer_len = 0;
if (state->arping_index < ifo->arping_len) {
struct arp_state *astate;
{
free(state->offer);
state->offer = NULL;
+ state->offer_len = 0;
}
}
}