Patch from Michael Galassi (nerd@percy.rain.com):
authorDavid Greenman <davidg@Root.COM>
Thu, 10 Feb 1994 11:04:48 +0000 (11:04 +0000)
committerDavid Greenman <davidg@Root.COM>
Thu, 10 Feb 1994 11:04:48 +0000 (11:04 +0000)
commit57742e6e1ce591248d8b22bd0cd070bd8a016791
treed467caa552029626cc8d596c418c219a1b7cb141
parent8791a96cda892a02fc3db615ecd577644ee61eeb
Patch from Michael Galassi (nerd@percy.rain.com):

The problem as I saw it was that a route was being added to the routing
tables in the kernel even in the case where the interface pointer in
the route structure was a null, this was fine until an atempt was made
to remove this route at which point a zero derefernce was "commited" and
the inevitable core was dumped.  The easy solution turns out to be to
check for a null interface pointer and not add the route.  The only time
I've observed the problem is when adding a route to the local end of a
point to point connection (SLIP or PPP).
sbin/routed/tables.c
usr.sbin/routed/tables.c