]> git.proxmox.com Git - mirror_frr.git/commitdiff
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)
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

index c9483a4c65e38eed2a22b597b6495defc2b280bd..45aedb6a7de7066758f59421bf3d880c4f87b924 100644 (file)
@@ -34,7 +34,7 @@
 
 /* Architectual Constants */
 #ifdef DEBUG
-#define OSPF_LS_REFRESH_TIME                    60
+#define OSPF_LS_REFRESH_TIME                   120
 #else
 #define OSPF_LS_REFRESH_TIME                  1800
 #endif