diff --git a/ntp_core.c b/ntp_core.c index 5e40e90..c3580eb 100644 --- a/ntp_core.c +++ b/ntp_core.c @@ -899,6 +899,8 @@ get_separation(int poll) { double separation; + assert(poll >= MIN_POLL && poll <= MAX_POLL); + /* Allow up to 8 sources using the same short interval to not be limited by the separation */ separation = UTI_Log2ToDouble(poll - 3);