patch-client_c 466 B

1234567891011121314151617
  1. $Id$
  2. bugfix from MirBSD ntpd: do not hardcode the number
  3. of required adjustment offsets, use the constant
  4. instead, MirOS commitid 10047041D2145A88E16
  5. --- openntpd-3.9p1.orig/client.c Sun May 14 05:28:58 2006
  6. +++ openntpd-3.9p1/client.c Mon Oct 8 12:08:30 2007
  7. @@ -314,7 +314,7 @@ client_update(struct ntp_peer *p)
  8. best = i;
  9. }
  10. - if (good < 8)
  11. + if (good < OFFSET_ARRAY_SIZE)
  12. return (-1);
  13. memcpy(&p->update, &p->reply[best], sizeof(p->update));