commit - 76ca4378889d6b4f0a57484f499ef07aabc7e968
commit + ddce9e236b5cbab80ad195840f427d4e19f39b97
blob - 11da938ab2c97ad9542869bd722262aa88c11c6d
blob + cd771f24c72f9b2004e4a92ebb224c853e8c0b9b
--- ndp.c
+++ ndp.c
size_t needed;
char *lim, *buf = NULL, *next;
struct rt_msghdr *rtm;
- struct sockaddr_in6 *sin;
+ struct sockaddr_in6 *sin = NULL;
struct sockaddr_dl *sdl;
struct in6_nbrinfo *nbi = NULL;
struct timeval now;
printf("\n");
}
- if (!nbi)
+ if (!nbi && sin)
printf("\n%% %s: failed to get neighbor information\n",
routename6(sin));