Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

bark if sdl_alen == 0. test code for KAME PR 235.

  • Loading branch information...
commit dc47b5eaec43a6fcb71231d592fc24ef800b10f8 1 parent 7a19839
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.50 2000/03/25 07:23:57 sumikawa Exp $ */
+/* $KAME: nd6.c,v 1.51 2000/04/07 15:36:05 itojun Exp $ */
/*
* Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@@ -2044,8 +2044,11 @@ nd6_storelladdr(ifp, rt, m, dst, desten)
return(0);
}
sdl = SDL(rt->rt_gateway);
- if (sdl->sdl_alen != 0)
- bcopy(LLADDR(sdl), desten, sdl->sdl_alen);
+ if (sdl->sdl_alen == 0) {
+ printf("nd6_storelladdr: sdl_alen == 0\n");
+ return(0);
+ }
+ bcopy(LLADDR(sdl), desten, sdl->sdl_alen);
return(1);
}
Please sign in to comment.
Something went wrong with that request. Please try again.