diff options
author | Jun-ichiro itojun Hagino <itojun@cvs.openbsd.org> | 2000-10-15 15:55:04 +0000 |
---|---|---|
committer | Jun-ichiro itojun Hagino <itojun@cvs.openbsd.org> | 2000-10-15 15:55:04 +0000 |
commit | 9444f374309371e84206508b19d7b79a13daf745 (patch) | |
tree | cde060d92e0348c083f5f1ec2140b99d23bb7f5b /sys/netinet6 | |
parent | 925fdf1d39b0ea6337656f4a4d726eceef894851 (diff) |
suppress warning on routing table overflow. sync with kame
Diffstat (limited to 'sys/netinet6')
-rw-r--r-- | sys/netinet6/nd6.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/sys/netinet6/nd6.c b/sys/netinet6/nd6.c index 6a9d7dc0c2e..bef280d7480 100644 --- a/sys/netinet6/nd6.c +++ b/sys/netinet6/nd6.c @@ -1,5 +1,5 @@ -/* $OpenBSD: nd6.c,v 1.18 2000/07/06 10:11:26 itojun Exp $ */ -/* $KAME: nd6.c,v 1.68 2000/07/02 14:48:02 itojun Exp $ */ +/* $OpenBSD: nd6.c,v 1.19 2000/10/15 15:55:03 itojun Exp $ */ +/* $KAME: nd6.c,v 1.75 2000/10/15 15:23:11 itojun Exp $ */ /* * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project. @@ -1972,8 +1972,11 @@ nd6_storelladdr(ifp, rt, m, dst, desten) } } - if (rt == NULL || - rt->rt_gateway->sa_family != AF_LINK) { + if (rt == NULL) { + /* this could happen, if we could not allocate memory */ + return(0); + } + if (rt->rt_gateway->sa_family != AF_LINK) { printf("nd6_storelladdr: something odd happens\n"); return(0); } |