[Git][NTPsec/ntpsec][master] Fix an incorrect length check.
Eric S. Raymond
gitlab at mg.gitlab.com
Mon Jun 27 09:26:54 UTC 2016
Eric S. Raymond pushed to branch master at NTPsec / ntpsec
Commits:
9ceac836 by Eric S. Raymond at 2016-06-27T05:26:34-04:00
Fix an incorrect length check.
- - - - -
1 changed file:
- ntpd/ntp_control.c
Changes:
=====================================
ntpd/ntp_control.c
=====================================
--- a/ntpd/ntp_control.c
+++ b/ntpd/ntp_control.c
@@ -2321,7 +2321,7 @@ ctl_putpeer(
char buf[NI_MAXHOST];
snprintf(buf, sizeof(buf), "%s(%d)",
p->procptr->clockname, p->refclkunit);
- ctl_putunqstr(peer_var[id].text, buf, 6);
+ ctl_putunqstr(peer_var[id].text, buf, strlen(buf));
}
#endif /* REFCLOCK */
break;
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/9ceac836b41646619e99c0ac88f41b176c13f4af
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ntpsec.org/pipermail/vc/attachments/20160627/7f9f446e/attachment.html>
More information about the vc
mailing list