Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

in nd6_storelladdr(), remove too picky error message.

rt == NULL can happen when we have too many routing entries.
  • Loading branch information...
commit 3883503765c5017a43c8e3216ac5277f49f06a2c 1 parent 7ca2cdc
itojun authored
Showing with 6 additions and 3 deletions.
  1. +6 −3 kame/sys/netinet6/nd6.c
View
9 kame/sys/netinet6/nd6.c
@@ -1,4 +1,4 @@
-/* $KAME: nd6.c,v 1.74 2000/07/29 23:28:20 jinmei Exp $ */
+/* $KAME: nd6.c,v 1.75 2000/10/15 15:23:11 itojun Exp $ */
/*
* Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@@ -2115,8 +2115,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);
}
Please sign in to comment.
Something went wrong with that request. Please try again.