mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-07-14 22:59:38 +00:00
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>
This commit is contained in:
parent
59f851e91d
commit
c222aa61d6
@ -35,7 +35,7 @@
|
|||||||
|
|
||||||
/* Architectual Constants */
|
/* Architectual Constants */
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
#define OSPF_LS_REFRESH_TIME 60
|
#define OSPF_LS_REFRESH_TIME 120
|
||||||
#else
|
#else
|
||||||
#define OSPF_LS_REFRESH_TIME 1800
|
#define OSPF_LS_REFRESH_TIME 1800
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user