[Git][NTPsec/ntpsec][master] nts_server.c: Fix warning.
Hal Murray (@hal.murray)
gitlab at mg.gitlab.com
Wed Feb 12 01:44:07 UTC 2025
Hal Murray pushed to branch master at NTPsec / ntpsec
Commits:
f282438e by Fred Wright at 2025-02-11T15:43:28-08:00
nts_server.c: Fix warning.
At least one compiler complains about initializing only one field of a
struct BufCtl_t. This fixes that.
TESTED:
Warning is now gone.
- - - - -
1 changed file:
- ntpd/nts_server.c
Changes:
=====================================
ntpd/nts_server.c
=====================================
@@ -384,7 +384,7 @@ bool nts_ke_request(SSL *ssl) {
uint8_t buff[2048] = {0};
uint8_t c2s[NTS_MAX_KEYLEN] = {0}, s2c[NTS_MAX_KEYLEN] = {0};
int aead = NO_AEAD, keylen;
- struct BufCtl_t buf = {0};
+ struct BufCtl_t buf = {0, 0};
int bytes_read, bytes_written;
int used;
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/-/commit/f282438ee3875330d82877975adbf7a096b06f73
--
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/-/commit/f282438ee3875330d82877975adbf7a096b06f73
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/20250212/bf8d8def/attachment.htm>
More information about the vc
mailing list