Lines Matching defs:existing
347 struct penalty *penalty = NULL, *existing = NULL;
421 if ((existing = RB_INSERT(penalties_by_addr, by_addr,
436 existing->active ? "active" : "inactive", t,
437 addrnetmask, (long long)(existing->expiry - now));
439 if (RB_REMOVE(penalties_by_expiry, by_expiry, existing) != existing)
442 existing->expiry += penalty_secs;
443 if (existing->expiry - now > penalty_cfg.penalty_max)
444 existing->expiry = now + penalty_cfg.penalty_max;
445 if (existing->expiry - now > penalty_cfg.penalty_min &&
446 !existing->active) {
448 addrnetmask, t, (long long)(existing->expiry - now),
450 existing->active = 1;
452 existing->reason = penalty->reason;
456 if (RB_INSERT(penalties_by_expiry, by_expiry, existing) != NULL)