don't touch non-AF_CCITT addrs on ctlinput. ctlinput routines can be
called from non-matching AFs. (saw panic by called with AF_INET6)
This commit is contained in:
parent
04e493cfbf
commit
6dd76ea8cf
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: pk_input.c,v 1.14 2000/02/01 22:52:07 thorpej Exp $ */
|
||||
/* $NetBSD: pk_input.c,v 1.15 2000/02/26 16:03:23 itojun Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1984 University of British Columbia.
|
||||
@ -267,6 +267,10 @@ pk_ctlinput(code, src, addr)
|
||||
register struct pkcb *pkp = (struct pkcb *) addr;
|
||||
struct rtentry *llrt;
|
||||
|
||||
/*XXX correct?*/
|
||||
if (src->sa_family != AF_CCITT)
|
||||
return 0;
|
||||
|
||||
switch (code) {
|
||||
case PRC_LINKUP:
|
||||
if (pkp->pk_state == DTE_WAITING)
|
||||
|
Loading…
Reference in New Issue
Block a user