]> git.proxmox.com Git - mirror_frr.git/commit
ospfd: Fix json Crash with inactive timer
authorDonald Sharp <sharpd@cumulusnetworks.com>
Fri, 2 Dec 2016 13:19:26 +0000 (08:19 -0500)
committerDavid Lamparter <equinox@opensourcerouting.org>
Fri, 2 Dec 2016 15:59:02 +0000 (16:59 +0100)
commit45d430e81de0c3ca127b378b1d0e020d116f01cb
treee35296a4f4e17eac70223c5127ac66980f277fa2
parentdb2d8df649d1e8ed26f28eb04bbd6fe3768a17cc
ospfd: Fix json Crash with inactive timer

When nbr->t_inactivity is not active, and
you do a show json over the neighbor it
will crash ospfd.  Fix the code so it
prints out -1 when the timer is inactive.

Ticket:CM-13835
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Reviewed-by: Don Slice <dslice@cumulusnetworks.com>
Reviewed-by: Daniel Walton <dwalton@cumulusnetworks.com>
(cherry picked from commit 78d8fcb9623ab4d9cebf6187a451448e056a84bf)
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
ospfd/ospf_vty.c