Subject: [ntpwg] [Technical Errata Reported] RFC5905 (3608)

From: RFC Errata System <[email-masked]>
Date: Mon, 29 Apr 2013 22:30:45 -0700 (PDT)

The following errata report has been submitted for RFC5905,
"Network Time Protocol Version 4: Protocol and Algorithms Specification".

--------------------------------------
You may review the report below and at:
http://www.rfc-editor.org/errata_search.php?rfc=5905&eid=3608

--------------------------------------
Type: Technical
Reported by: Cristian Rodríguez <[email-masked]>

Section: A.2.

Original Text
-------------
/*

         * Read command line options and initialize system variables.

         * The reference implementation measures the precision specific

         * to each machine by measuring the clock increments to read the

         * system clock.

         */

        memset(&s, sizeof(s), 0);

.....

/*

         * Initialize local clock variables

         */

        memset(&c, sizeof(c), 0);

Corrected Text
--------------
/*

         * Read command line options and initialize system variables.

         * The reference implementation measures the precision specific

         * to each machine by measuring the clock increments to read the

         * system clock.

         */

        memset(&s, 0. sizeof(s));

...

/*

         * Initialize local clock variables

         */

        memset(&c, 0, sizeof(c));

Notes
-----
Paramters 2 and 3 of the memset functions are inverted everywhere in the example code, not just in section A2

Instructions:
-------------
This errata is currently posted as "Reported". If necessary, please
use "Reply All" to discuss whether it should be verified or
rejected. When a decision is reached, the verifying party (IESG)
can log in to change the status and edit the report, if necessary. 

--------------------------------------
RFC5905 (draft-ietf-ntp-ntpv4-proto-13)
--------------------------------------
Title               : Network Time Protocol Version 4: Protocol and Algorithms Specification
Publication Date    : June 2010
Author(s)           : D. Mills, J. Martin, Ed., J. Burbank, W. Kasch
Category            : PROPOSED STANDARD
Source              : Network Time Protocol
Area                : Internet
Stream              : IETF
Verifying Party     : IESG
_______________________________________________
ntpwg mailing list
[email-masked]
http://lists.ntp.org/listinfo/ntpwg