[Git][NTPsec/ntpsec][master] 2 commits: Fix for wrong length in response from server

Hal Murray gitlab at mg.gitlab.com
Sat Mar 23 15:21:27 UTC 2019



Hal Murray pushed to branch master at NTPsec / ntpsec


Commits:
afcc8cd2 by Hal Murray at 2019-03-23T14:29:44Z
Fix for wrong length in response from server

- - - - -
760dbaee by Hal Murray at 2019-03-23T15:19:22Z
Add strerror to the multi-thread msyslog list

- - - - -


2 changed files:

- devel/TODO-NTS
- ntpd/nts_extens.c


Changes:

=====================================
devel/TODO-NTS
=====================================
@@ -1,5 +1,6 @@
 multithread msyslog
   libntp/lib_strbuf.c too
+  strerror
 
 documentation:
   HOWTO on NTS


=====================================
ntpd/nts_extens.c
=====================================
@@ -265,7 +265,7 @@ int extens_server_send(struct ntspacket_t *ntspacket, struct pkt *xpkt) {
   aeadlen = NTP_EX_U16_LNG*2+NONCE_LENGTH+CMAC_LENGTH + plainleng;
   ex_append_header(&buf, NTS_AEEF, aeadlen);
   append_uint16(&buf, NONCE_LENGTH);
-  append_uint16(&buf, plainleng);
+  append_uint16(&buf, plainleng+CMAC_LENGTH);
 
   nonce = buf.next;
   RAND_bytes(nonce, NONCE_LENGTH);



View it on GitLab: https://gitlab.com/NTPsec/ntpsec/compare/99c6f0d460963b86362234b4d6332fefca4caaa3...760dbaee1506901c2544db2f900e38a0beaf6eb4

-- 
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/compare/99c6f0d460963b86362234b4d6332fefca4caaa3...760dbaee1506901c2544db2f900e38a0beaf6eb4
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/20190323/dd4892a7/attachment.html>


More information about the vc mailing list