fa.openbsd.source-changes
[Top] [All Lists]

CVS: cvs.openbsd.org: src

Subject: CVS: cvs.openbsd.org: src
From: Stefan Sperling
Date: Sun, 20 Sep 2009 20:46:13 UTC
Newsgroups: fa.openbsd.source-changes

CVSROOT:        /cvs
Module name:    src
Changes by:     stsp@xxxxxxxxxxxxxxx    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.


<Prev in Thread] Current Thread [Next in Thread>