CVSROOT:        /cvs
Module name:    src
Changes by:     flor...@cvs.openbsd.org 2015/11/29 05:32:11

Modified files:
        sbin/ping      : ping.c 
        sbin/ping6     : ping6.c 

Log message:
Doubles are not reals. Imprecision might lead to trying to
calculate square root of a negative number. Just use 0 in this case.
Pointed out by and fix from Nathanael Rensen ( nathanael AT list DOT
polymorpheus DOT com ), thanks!
OK deraadt@

(Funnily this bug was in ping6 for many years, only discovered once I
synced ping to the ping6 implementation recently.)

Reply via email to