[Git][NTPsec/ntpsec][master] Removed type pun from receive().

Ian Bruene gitlab at mg.gitlab.com
Sat Apr 28 00:40:54 UTC 2018


Ian Bruene pushed to branch master at NTPsec / ntpsec


Commits:
85df6291 by Ian Bruene at 2018-04-27T18:28:17Z
Removed type pun from receive().

- - - - -


1 changed file:

- ntpd/ntp_proto.c


Changes:

=====================================
ntpd/ntp_proto.c
=====================================
--- a/ntpd/ntp_proto.c
+++ b/ntpd/ntp_proto.c
@@ -728,7 +728,7 @@ receive(
 	 * intentionally use an early version.
 	 */
 	{
-	uint8_t hisversion = PKT_VERSION(rbufp->recv_pkt.li_vn_mode);
+	uint8_t hisversion = PKT_VERSION(rbufp->recv_buffer[0]);
 	if (hisversion == NTP_VERSION) {
 		sys_newversion++;		/* new version */
 	} else if (!(restrict_mask & RES_VERSION) && hisversion >=



View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/85df62912b580bf35676914d78ca58c4c1b3d5fb

---
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/85df62912b580bf35676914d78ca58c4c1b3d5fb
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/20180428/30ead199/attachment.html>


More information about the vc mailing list