CVSROOT:        /cvs
Module name:    src
Changes by:     patr...@cvs.openbsd.org 2020/05/19 06:54:37

Modified files:
        sys/lib/libsa  : in_cksum.c 

Log message:
If we pass a packet length larger than 2^16, we should panic() instead
of returning -1.  With a return type of u_int16_t, -1 is not different
to a valid checksum.  For incoming packets, the header lengths don't
exceed that size anyway, but for outgoing packets it's better to see
if our bootloader crafts a broken one.

Discussed with gerhard@
ok deraadt@ procter@

Reply via email to