summaryrefslogtreecommitdiff
path: root/ntpd/ntp_request.c
diff options
context:
space:
mode:
authorCy Schubert <cy@FreeBSD.org>2019-03-07 13:01:16 +0000
committerCy Schubert <cy@FreeBSD.org>2019-03-07 13:01:16 +0000
commit360c01464aee3bc4c520898a675f35967db09ac2 (patch)
treec244e3f6baebbb7d13d8dd0d4ee570773cb3c579 /ntpd/ntp_request.c
parentc7f4d2332394d5600fe4e14c530ede36b0ff29b0 (diff)
Notes
Diffstat (limited to 'ntpd/ntp_request.c')
-rw-r--r--ntpd/ntp_request.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/ntpd/ntp_request.c b/ntpd/ntp_request.c
index 19d9b0d829c5..53585088a67f 100644
--- a/ntpd/ntp_request.c
+++ b/ntpd/ntp_request.c
@@ -2536,7 +2536,15 @@ get_clock_info(
DTOLFP(clock_stat.fudgetime2, &ltmp);
HTONL_FP(&ltmp, &ic->fudgetime2);
ic->fudgeval1 = htonl((u_int32)clock_stat.fudgeval1);
+ /* [Bug3527] Backward Incompatible: ic->fudgeval2 is
+ * a string, instantiated via memcpy() so there is no
+ * endian issue to correct.
+ */
+#ifdef DISABLE_BUG3527_FIX
ic->fudgeval2 = htonl(clock_stat.fudgeval2);
+#else
+ ic->fudgeval2 = clock_stat.fudgeval2;
+#endif
free_varlist(clock_stat.kv_list);