diff --git a/reference.c b/reference.c index c531356..61a356b 100644 --- a/reference.c +++ b/reference.c @@ -1314,7 +1314,7 @@ void REF_EnableLocal(int stratum) { enable_local_stratum = 1; - local_stratum = stratum; + local_stratum = CLAMP(1, stratum, NTP_MAX_STRATUM - 1); } /* ================================================== */