projects
/
platform
/
upstream
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e4844b8
)
ntpd: restore forgotten delay sanitization
author
Denys Vlasenko
<vda.linux@googlemail.com>
Fri, 1 Jan 2010 21:23:27 +0000
(22:23 +0100)
committer
Denys Vlasenko
<vda.linux@googlemail.com>
Fri, 1 Jan 2010 21:23:27 +0000
(22:23 +0100)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
networking/ntpd.c
patch
|
blob
|
history
diff --git
a/networking/ntpd.c
b/networking/ntpd.c
index
02761b3
..
5431b74
100644
(file)
--- a/
networking/ntpd.c
+++ b/
networking/ntpd.c
@@
-1403,6
+1403,8
@@
recv_and_process_peer_pkt(peer_t *p)
* the delay is clamped not less than the system precision.
*/
p->lastpkt_delay = (T4 - T1) - (T3 - T2);
+ if (p->lastpkt_delay < G_precision_sec)
+ p->lastpkt_delay = G_precision_sec;
datapoint->d_dispersion = LOG2D(msg.m_precision_exp) + G_precision_sec;
if (!p->p_reachable_bits) {
/* 1st datapoint ever - replicate offset in every element */