CVSROOT:        /cvs
Module name:    src
Changes by:     s...@cvs.openbsd.org    2009/09/20 14:45:06

Modified files:
        usr.sbin/ospf6d: interface.c 

Log message:
if_new() would treat the new interface as a virtual link if the ifname
parameter was NULL. But it's easy enough to make ifname != NULL by accident,
e.g. by passing a zeroed or even uninitialised array. This function should
accept a 'virtual' flag of some kind instead.
Since we don't even support virtual links yet, change the check to
"if (virtual)", #if 0 the check, and code that depends on it (including
a file-scope variable), and add comments marking this as TODO.

ok claudio, who requested #if 0 instead of deletion.

Reply via email to