RFC Errata


Errata Search

 
Source of RFC  
Summary Table Full Records

RFC 5905, "Network Time Protocol Version 4: Protocol and Algorithms Specification", June 2010

Note: This RFC has been updated by RFC 7822, RFC 8573, RFC 9109

Source of RFC: ntp (int)

Errata ID: 3608
Status: Held for Document Update
Type: Technical
Publication Format(s) : TEXT

Reported By: Cristian Rodríguez
Date Reported: 2013-04-29
Held for Document Update by: Brian Haberman

Section A.2. says:

/*
         * 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);

It should say:

/*
         * 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

Report New Errata



Advanced Search