state = D_STATE(ifp);
ifo = ifp->options;
#ifdef ARPING
- if (state->arping_index < ifo->arping_len) {
+ if (ifo->arping_len && state->arping_index < ifo->arping_len) {
/* We didn't find a profile for this
* address or hwaddr, so move to the next
* arping profile */
state->offer_len = 0;
#ifdef ARPING
- if (state->arping_index < ifo->arping_len) {
+ if (ifo->arping_len && state->arping_index < ifo->arping_len) {
struct arp_state *astate;
astate = arp_new(ifp, NULL);