-/* $OpenBSD: nd6.c,v 1.8 2000/04/13 14:11:17 itojun Exp $ */
+/* $OpenBSD: nd6.c,v 1.9 2000/04/13 14:34:10 itojun Exp $ */
/* $KAME: nd6.c,v 1.41 2000/02/24 16:34:50 itojun Exp $ */
/*
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);
}