]> git.puffer.fish Git - mirror/frr.git/commit
ospf: Fix segfault if compiled with DEBUG
authorßingen <bingen@voltanet.io>
Tue, 1 Aug 2017 09:38:19 +0000 (11:38 +0200)
committerDavid Lamparter <equinox@opensourcerouting.org>
Wed, 9 Aug 2017 10:07:58 +0000 (12:07 +0200)
commitea4ecfb3511e9ca90b8682d73e96477df00bcfb7
tree455f4aac55106cfbda95f9685d62aacc32ad1101
parentc811f101e701ece749bfa50cf8bc5a03183e56b2
ospf: Fix segfault if compiled with DEBUG

If OSPF_LS_REFRESH_TIME is 60, min_delay in ospf_refresher_register_lsa
function (ospf_lsa.c) would be negative, so index (which is unsigned)
would be out of range, causing a segfault.

Signed-off-by: ßingen <bingen@voltanet.io>
lib/libospf.h