1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-05 12:56:08 +00:00

Refuse to install invalid ARP entries.

Submitted by:	Vitaliy Ovsyannikov <V.Ovsyannikov kr.ru>
This commit is contained in:
Gleb Smirnoff 2006-02-09 12:49:39 +00:00
parent d41b34d1cd
commit a47c388cce
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=155471

View File

@ -348,9 +348,10 @@ set(int argc, char **argv)
} else {
struct ether_addr *ea1 = ether_aton(eaddr);
if (ea1 == NULL)
if (ea1 == NULL) {
warnx("invalid Ethernet address '%s'", eaddr);
else {
return (1);
} else {
*ea = *ea1;
sdl_m.sdl_alen = ETHER_ADDR_LEN;
}