CVSROOT:        /cvs
Module name:    src
Changes by:     [email protected]    2016/02/05 04:26:26

Modified files:
        usr.sbin/rtadvd: config.c if.c 

Log message:
rtadvd used a strncpy with a src interface name from the command line
without checking its length.  Replace it with strlcpy, check for
truncation and move the check before using the user-specified
interface name.  While here, replace another strncpy of a interface
name with memset-zero + strlcpy and check for truncation in
if_getmtu() (should not happen as we validated the length before, but
it's better to be safe and generally a better practice).

OK jsg@

Reply via email to