[Git][NTPsec/ntpsec][master] More work on Issue #425 (crash from ntpq)
Hal Murray
gitlab at mg.gitlab.com
Mon Dec 18 02:07:23 UTC 2017
Hal Murray pushed to branch master at NTPsec / ntpsec
Commits:
36b0d5c4 by Hal Murray at 2017-12-17T18:07:00-08:00
More work on Issue #425 (crash from ntpq)
There were 2 places were dstadr_refid was updated from (raw)value.
This fixes the second one.
- - - - -
1 changed file:
- pylib/util.py
Changes:
=====================================
pylib/util.py
=====================================
--- a/pylib/util.py
+++ b/pylib/util.py
@@ -968,7 +968,7 @@ class PeerSummary:
# guess is that it was designed to deal with formats that
# no longer occur in this field.
if "refid" in self.__header:
- dstadr_refid = value
+ dstadr_refid = rawvalue
elif name == "rec":
rec = value # l_fp timestamp
last_sync = int(now - ntp.ntpc.lfptofloat(rec))
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/36b0d5c4f14bfcaeac548e70d72dcff5b927886d
---
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/36b0d5c4f14bfcaeac548e70d72dcff5b927886d
You're receiving this email because of your account on gitlab.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ntpsec.org/pipermail/vc/attachments/20171218/1d7753c3/attachment.html>
More information about the vc
mailing list