[Git][NTPsec/ntpsec][master] Removed unneeded layer of type-punning.

Ian Bruene gitlab at mg.gitlab.com
Fri Mar 30 23:01:27 UTC 2018


Ian Bruene pushed to branch master at NTPsec / ntpsec


Commits:
63034d8a by Ian Bruene at 2018-03-30T23:00:12Z
Removed unneeded layer of type-punning.

- - - - -


1 changed file:

- ntpd/ntp_control.c


Changes:

=====================================
ntpd/ntp_control.c
=====================================
--- a/ntpd/ntp_control.c
+++ b/ntpd/ntp_control.c
@@ -758,7 +758,7 @@ process_control(
 	numctlreq++;
 	rmt_addr = &rbufp->recv_srcadr;
 	lcl_inter = rbufp->dstadr;
-	pkt = (struct ntp_control *)&rbufp->recv_pkt;
+	pkt = (struct ntp_control *)&rbufp->recv_buffer;
 
 	/*
 	 * If the length is less than required for the header, or
@@ -3979,7 +3979,7 @@ read_ordlist(
 	 * which are access control lists.  Other request data return
 	 * CERR_UNKNOWNVAR.
 	 */
-	cpkt = (struct ntp_control *)&rbufp->recv_pkt;
+	cpkt = (struct ntp_control *)&rbufp->recv_buffer;
 	qdata_octets = ntohs(cpkt->count);
 	if (0 == qdata_octets || (ifstatint8_ts == qdata_octets &&
 	    !memcmp(ifstats_s, cpkt->data, ifstatint8_ts))) {



View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/63034d8a9c612281c78bff4915deae7e525745c5

---
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/63034d8a9c612281c78bff4915deae7e525745c5
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/20180330/ea07d8b6/attachment.html>


More information about the vc mailing list