[ntp:bugs] [Bug 601] New: ntpq signed-integer decode uses incorrect parameter

bugzilla at ntp.isc.org bugzilla at ntp.isc.org
Mon Apr 24 16:55:21 UTC 2006


http://bugs.ntp.isc.org/show_bug.cgi?id=601

           Summary: ntpq signed-integer decode uses incorrect parameter
           Product: ntp
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: minor
          Priority: P5
         Component: - other
        AssignedTo: stenn at ntp.org
        ReportedBy: ronan at noc.ulcc.ac.uk
                CC: bugs at ntp.isc.org


Routine decodeint(char *str, long *val) in ntpq.c has

                    return hextoint(str+2, (u_long *)&val);
                return octtoint(str, (u_long *)&val);

but should have

                    return hextoint(str+2, (u_long *) val);
                return octtoint(str, (u_long *) val);

ie cast the pointer, not the address of the pointer.
Compare with decodeuint() just below it.

-- 
Ronan Flood <ronan at noc.ulcc.ac.uk>



------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


More information about the bugs mailing list