more careful about AF on ctlinput. (saw panic in the past with kame/netbsd141)
This commit is contained in:
parent
6dd76ea8cf
commit
6b56aad85e
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: esis.c,v 1.22 2000/01/08 20:39:45 chopps Exp $ */
|
||||
/* $NetBSD: esis.c,v 1.23 2000/02/26 16:10:31 itojun Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1991, 1993
|
||||
|
@ -1197,6 +1197,9 @@ esis_ctlinput(req, siso, dummy)
|
|||
{
|
||||
register struct iso_ifaddr *ia; /* scan through interface addresses */
|
||||
|
||||
/*XXX correct? */
|
||||
if (siso->sa_family != AF_ISO)
|
||||
return NULL;
|
||||
if (req == PRC_IFDOWN)
|
||||
for (ia = iso_ifaddr.tqh_first; ia != 0;
|
||||
ia = ia->ia_list.tqe_next) {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: tp_cons.c,v 1.11 1998/07/05 04:37:43 jonathan Exp $ */
|
||||
/* $NetBSD: tp_cons.c,v 1.12 2000/02/26 16:10:31 itojun Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1991, 1993
|
||||
|
@ -164,6 +164,10 @@ tpcons_ctlinput(cmd, siso, v)
|
|||
struct isopcb *isop = v;
|
||||
register struct tp_pcb *tpcb = 0;
|
||||
|
||||
/*XXX correct? */
|
||||
if (siso->sa_family != AF_ISO)
|
||||
return NULL;
|
||||
|
||||
if (isop->isop_socket)
|
||||
tpcb = (struct tp_pcb *) isop->isop_socket->so_pcb;
|
||||
switch (cmd) {
|
||||
|
|
Loading…
Reference in New Issue