summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ndp
diff options
context:
space:
mode:
authorshin <shin@FreeBSD.org>2000-03-11 20:57:31 +0000
committershin <shin@FreeBSD.org>2000-03-11 20:57:31 +0000
commite09aeb465b879b0d0ee8c14b6e3842f57549c29f (patch)
treeee604da9f3836ee9c2a4db1a7591568054e8f2ba /usr.sbin/ndp
parentc7af3d33b2315221c93264a530fc3b8c62a45121 (diff)
downloadFreeBSD-src-e09aeb465b879b0d0ee8c14b6e3842f57549c29f.zip
FreeBSD-src-e09aeb465b879b0d0ee8c14b6e3842f57549c29f.tar.gz
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
Diffstat (limited to 'usr.sbin/ndp')
-rw-r--r--usr.sbin/ndp/ndp.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/usr.sbin/ndp/ndp.c b/usr.sbin/ndp/ndp.c
index 01cea32..41f67da 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);
OpenPOWER on IntegriCloud