diff options
| author | ßingen <bingen@voltanet.io> | 2017-08-01 11:38:19 +0200 |
|---|---|---|
| committer | David Lamparter <equinox@opensourcerouting.org> | 2017-08-09 12:07:58 +0200 |
| commit | ea4ecfb3511e9ca90b8682d73e96477df00bcfb7 (patch) | |
| tree | 455f4aac55106cfbda95f9685d62aacc32ad1101 /lib/libospf.h | |
| parent | c811f101e701ece749bfa50cf8bc5a03183e56b2 (diff) | |
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>
Diffstat (limited to 'lib/libospf.h')
| -rw-r--r-- | lib/libospf.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libospf.h b/lib/libospf.h index c9483a4c65..45aedb6a7d 100644 --- a/lib/libospf.h +++ b/lib/libospf.h @@ -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 |
