diff options
author | 2000-10-15 15:55:03 +0000 | |
---|---|---|
committer | 2000-10-15 15:55:03 +0000 | |
commit | 72e302620cfdeee7a46f89892ed826aca8c430eb (patch) | |
tree | e8278b4f2b11b308e8a623e4722a9b514e6fe2c9 | |
parent | typo (diff) | |
download | wireguard-openbsd-72e302620cfdeee7a46f89892ed826aca8c430eb.tar.xz wireguard-openbsd-72e302620cfdeee7a46f89892ed826aca8c430eb.zip |
suppress warning on routing table overflow. sync with kame
-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); } |