]> git.proxmox.com Git - mirror_frr.git/commit
eigrp: Don't dereference NULL timer in a Neighbour
authorAndrew Lunn <andrew@lunn.ch>
Wed, 9 Aug 2017 18:46:52 +0000 (13:46 -0500)
committerAndrew Lunn <andrew@lunn.ch>
Thu, 10 Aug 2017 18:25:37 +0000 (13:25 -0500)
commit2085179b22a861da6af7b816a0857279c2706ba2
tree1bec130c44ebfa68bacad917819c47f952f6e7c2
parent043abefeb24c34a51a37345d0b928bbf38f1e632
eigrp: Don't dereference NULL timer in a Neighbour

Current, a eigrp_neighbor only has a t_holddown timer when in state
EIGRP_NEIGHBOR_PENDING and EIGRP_NEIGHBOR_UP. In state
EIGRP_NEIGHBOR_DOWN it could be a NULL pointer. Don't dereference the
timer when dumping the neighbour table without first checking it
exists. If it does not exist, display - instead of the remaining time.

Signed-off-by: Andrew Lunn <andrew@lunn.ch>
eigrpd/eigrp_dump.c