mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-11-28 02:32:47 +00:00
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
This commit is contained in:
parent
b2fa7d408d
commit
94b65aeee9
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=57919
@ -467,6 +467,7 @@ delete(host)
|
||||
goto delete;
|
||||
}
|
||||
}
|
||||
return 0;
|
||||
delete:
|
||||
if (sdl->sdl_family != AF_LINK) {
|
||||
printf("cannot locate %s\n", host);
|
||||
|
Loading…
Reference in New Issue
Block a user