diff options
| author | ßingen <bingen@voltanet.io> | 2017-08-01 11:38:19 +0200 |
|---|---|---|
| committer | ßingen <bingen@voltanet.io> | 2017-08-01 11:38:19 +0200 |
| commit | c222aa61d685d483ac21245d51a0ed013897517a (patch) | |
| tree | 0e183f81c400addd0d446be77599f4ec0ed060d4 /lib/libospf.h | |
| parent | 59f851e91d7f777ccb401aa6620cfa4040569cb4 (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 a1ff9c24a2..ec6e642f89 100644 --- a/lib/libospf.h +++ b/lib/libospf.h @@ -35,7 +35,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 |
