From: mpi Date: Mon, 15 Aug 2016 08:52:03 +0000 (+0000) Subject: Checking for RTF_BROADCAST here makes no sense. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=1fa97ce39f4941f5f895fb90d21494f66d6e3a6d;p=openbsd Checking for RTF_BROADCAST here makes no sense. --- diff --git a/usr.sbin/ndp/ndp.c b/usr.sbin/ndp/ndp.c index cc16682fc80..4f56eb70aa2 100644 --- a/usr.sbin/ndp/ndp.c +++ b/usr.sbin/ndp/ndp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ndp.c,v 1.77 2016/08/05 11:53:23 jca Exp $ */ +/* $OpenBSD: ndp.c,v 1.78 2016/08/15 08:52:03 mpi Exp $ */ /* $KAME: ndp.c,v 1.101 2002/07/17 08:46:33 itojun Exp $ */ /* @@ -512,7 +512,7 @@ delete(char *host) if (IN6_ARE_ADDR_EQUAL(&sin->sin6_addr, &sin_m.sin6_addr)) { if (sdl->sdl_family == AF_LINK && rtm->rtm_flags & RTF_LLINFO) { - if (rtm->rtm_flags & (RTF_LOCAL|RTF_BROADCAST)) + if (rtm->rtm_flags & RTF_LOCAL) return (0); if (!(rtm->rtm_flags & RTF_GATEWAY)) goto delete;