Annotation of /trunk/busybox/patches/busybox-1.20.2-ntpd.patch
Parent Directory | Revision Log
Revision 2114 -
(hide annotations)
(download)
Wed Mar 13 13:53:34 2013 UTC (11 years, 6 months ago) by niro
File size: 493 byte(s)
Wed Mar 13 13:53:34 2013 UTC (11 years, 6 months ago) by niro
File size: 493 byte(s)
-added upstream patch
1 | niro | 2114 | --- busybox-1.20.2/networking/ntpd.c |
2 | +++ busybox-1.20.2-ntpd/networking/ntpd.c | ||
3 | @@ -1840,7 +1840,7 @@ recv_and_process_client_pkt(void /*int f | ||
4 | |||
5 | /* Build a reply packet */ | ||
6 | memset(&msg, 0, sizeof(msg)); | ||
7 | - msg.m_status = G.stratum < MAXSTRAT ? G.ntp_status : LI_ALARM; | ||
8 | + msg.m_status = G.stratum < MAXSTRAT ? (G.ntp_status & LI_MASK) : LI_ALARM; | ||
9 | msg.m_status |= (query_status & VERSION_MASK); | ||
10 | msg.m_status |= ((query_status & MODE_MASK) == MODE_CLIENT) ? | ||
11 | MODE_SERVER : MODE_SYM_PAS; |