summaryrefslogtreecommitdiffstats
path: root/eigrpd/eigrp_neighbor.c
diff options
context:
space:
mode:
authorRenato Westphal <renatowestphal@gmail.com>2017-05-12 21:38:18 +0200
committerDonald Sharp <sharpd@cumulusnetworks.com>2017-05-13 19:08:00 +0200
commit76220653492a3eb9eadc3d1d78a1a4bfbc1b5ece (patch)
tree98ace6add23a1ec1503aa2612f65db575c60e973 /eigrpd/eigrp_neighbor.c
parentlib: Cleanup command parsing a tiny bit (diff)
downloadfrr-76220653492a3eb9eadc3d1d78a1a4bfbc1b5ece.tar.xz
frr-76220653492a3eb9eadc3d1d78a1a4bfbc1b5ece.zip
eigrpd: Some Basic Corrections
* Advertise routes to zebra * Connected routes should not have a nexthop address * Fix segfaut on exit Signed-off-by: Renato Westphal <renatowestphal@gmail.com>
Diffstat (limited to 'eigrpd/eigrp_neighbor.c')
-rw-r--r--eigrpd/eigrp_neighbor.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/eigrpd/eigrp_neighbor.c b/eigrpd/eigrp_neighbor.c
index f200351c1..003d3a7a7 100644
--- a/eigrpd/eigrp_neighbor.c
+++ b/eigrpd/eigrp_neighbor.c
@@ -195,7 +195,8 @@ eigrp_nbr_delete (struct eigrp_neighbor *nbr)
eigrp_fifo_free (nbr->retrans_queue);
THREAD_OFF (nbr->t_holddown);
- listnode_delete (nbr->ei->nbrs,nbr);
+ if (nbr->ei)
+ listnode_delete (nbr->ei->nbrs,nbr);
XFREE (MTYPE_EIGRP_NEIGHBOR, nbr);
}