diff options
-rw-r--r-- | usr.sbin/arp/arp.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.sbin/arp/arp.c b/usr.sbin/arp/arp.c index d7cdc20..aee3da4 100644 --- a/usr.sbin/arp/arp.c +++ b/usr.sbin/arp/arp.c @@ -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; } |