-/* $OpenBSD: rde_dual.c,v 1.4 2015/10/05 01:59:33 renato Exp $ */
+/* $OpenBSD: rde_dual.c,v 1.5 2015/10/20 11:26:40 jsg Exp $ */
/*
* Copyright (c) 2015 Renato Westphal <renato@openbsd.org>
struct eigrp_route *successor;
uint32_t old_fdistance;
struct rinfo ri;
+ enum route_type type;
old_fdistance = rn->successor.fdistance;
+ type = route->type;
route_del(rn, route);
switch (rn->state) {
if (rn->state & DUAL_STA_ACTIVE_ALL) {
reply = reply_outstanding_find(rn, nbr);
if (reply) {
- rinfo_fill_infinite(rn, route->type, &ri);
+ rinfo_fill_infinite(rn, type, &ri);
rde_check_reply(nbr, &ri, 0);
}
}