From 94b65aeee96bf6898b93c936f2ec6b635012dc3f Mon Sep 17 00:00:00 2001 From: Yoshinobu Inoue Date: Sat, 11 Mar 2000 20:57:31 +0000 Subject: [PATCH] Add missing return. "ndp" command should deletes only neighbor cache entries, but the program lacks necessary "return" after the neighbor cache entry check, so it might deletes non neighbor cache entries. (it seems that usually no problem happens.) Approved by: jkh Reviewed by: ume --- usr.sbin/ndp/ndp.c | 1 + 1 file changed, 1 insertion(+) diff --git a/usr.sbin/ndp/ndp.c b/usr.sbin/ndp/ndp.c index 01cea32290d1..41f67da11123 100644 --- a/usr.sbin/ndp/ndp.c +++ b/usr.sbin/ndp/ndp.c @@ -467,6 +467,7 @@ delete(host) goto delete; } } + return 0; delete: if (sdl->sdl_family != AF_LINK) { printf("cannot locate %s\n", host);