Fix a bug that I introduced in rev 1.11, when I left out an assignment
to ifp as I converted this code to use rtcache_getrt(). I have high hopes that this will fix PR37916.
This commit is contained in:
parent
d49b125626
commit
e4774a20a3
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: ddp_output.c,v 1.13 2008/01/14 04:12:40 dyoung Exp $ */
|
||||
/* $NetBSD: ddp_output.c,v 1.14 2008/04/06 18:46:56 dyoung Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1990,1991 Regents of The University of Michigan.
|
||||
@ -27,7 +27,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: ddp_output.c,v 1.13 2008/01/14 04:12:40 dyoung Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: ddp_output.c,v 1.14 2008/04/06 18:46:56 dyoung Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
@ -130,7 +130,7 @@ ddp_route(struct mbuf *m, struct route *ro)
|
||||
struct ifnet *ifp = NULL;
|
||||
u_short net;
|
||||
|
||||
if ((rt = rtcache_validate(ro)) != NULL) {
|
||||
if ((rt = rtcache_validate(ro)) != NULL && (ifp = rt->rt_ifp) != NULL) {
|
||||
net = satosat(rt->rt_gateway)->sat_addr.s_net;
|
||||
TAILQ_FOREACH(aa, &at_ifaddr, aa_list) {
|
||||
if (aa->aa_ifp == ifp &&
|
||||
|
Loading…
Reference in New Issue
Block a user