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:
itojun 2000-02-26 16:03:23 +00:00
parent 04e493cfbf
commit 6dd76ea8cf
1 changed files with 5 additions and 1 deletions

View File

@ -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)