[Git][NTPsec/ntpsec][master] Restore FLAG_AUTHENTIC to peer->cfg.flags Issue #513
Hal Murray
gitlab at mg.gitlab.com
Thu Nov 1 08:53:09 UTC 2018
Hal Murray pushed to branch master at NTPsec / ntpsec
Commits:
7ba6cb30 by Hal Murray at 2018-11-01T07:53:14Z
Restore FLAG_AUTHENTIC to peer->cfg.flags Issue #513
- - - - -
1 changed file:
- ntpd/ntp_proto.c
Changes:
=====================================
ntpd/ntp_proto.c
=====================================
@@ -737,6 +737,7 @@ receive(
stat_count.sys_badauth++;
if(peer != NULL) {
peer->badauth++;
+ peer->cfg.flags &= ~FLAG_AUTHENTIC;
peer->flash |= BOGON5;
}
goto done;
@@ -745,6 +746,7 @@ receive(
if (peer != NULL) {
peer->received++;
+ peer->cfg.flags |= FLAG_AUTHENTIC;
peer->timereceived = current_time;
}
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/7ba6cb30c4e133c8c7db9fa57a1e62928d4538cb
--
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/7ba6cb30c4e133c8c7db9fa57a1e62928d4538cb
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/20181101/2799626f/attachment.html>
More information about the vc
mailing list