summaryrefslogtreecommitdiff
path: root/package/openntpd/patches/patch-client_c
blob: 37c0c89a7d9f3bc48b676739a7d0b8df59cf1377 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
$Id$

	bugfix from MirBSD ntpd: do not hardcode the number
	of required adjustment offsets, use the constant
	instead, MirOS commitid 10047041D2145A88E16

--- openntpd-3.9p1.orig/client.c	Sun May 14 05:28:58 2006
+++ openntpd-3.9p1/client.c	Mon Oct  8 12:08:30 2007
@@ -314,7 +314,7 @@ client_update(struct ntp_peer *p)
 				best = i;
 		}
 
-	if (good < 8)
+	if (good < OFFSET_ARRAY_SIZE)
 		return (-1);
 
 	memcpy(&p->update, &p->reply[best], sizeof(p->update));