summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/lib/libc/net/ethers.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/lib/libc/net/ethers.c b/src/lib/libc/net/ethers.c
index aa2d99c0a3..d7b0b32f13 100644
--- a/src/lib/libc/net/ethers.c
+++ b/src/lib/libc/net/ethers.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: ethers.c,v 1.5 1998/03/17 06:16:55 millert Exp $ */ 1/* $OpenBSD: ethers.c,v 1.6 1998/03/17 06:20:25 millert Exp $ */
2 2
3/* 3/*
4 * Copyright (c) 1998 Todd C. Miller <Todd.Miller@courtesan.com> 4 * Copyright (c) 1998 Todd C. Miller <Todd.Miller@courtesan.com>
@@ -37,7 +37,7 @@
37 */ 37 */
38 38
39#if defined(LIBC_SCCS) && !defined(lint) 39#if defined(LIBC_SCCS) && !defined(lint)
40static char rcsid[] = "$OpenBSD: ethers.c,v 1.5 1998/03/17 06:16:55 millert Exp $"; 40static char rcsid[] = "$OpenBSD: ethers.c,v 1.6 1998/03/17 06:20:25 millert Exp $";
41#endif /* LIBC_SCCS and not lint */ 41#endif /* LIBC_SCCS and not lint */
42 42
43#include <sys/types.h> 43#include <sys/types.h>
@@ -126,8 +126,10 @@ ether_ntohost(hostname, e)
126 126
127 if (e->ether_addr_octet[0] > 0xFF || e->ether_addr_octet[1] > 0xFF || 127 if (e->ether_addr_octet[0] > 0xFF || e->ether_addr_octet[1] > 0xFF ||
128 e->ether_addr_octet[2] > 0xFF || e->ether_addr_octet[3] > 0xFF || 128 e->ether_addr_octet[2] > 0xFF || e->ether_addr_octet[3] > 0xFF ||
129 e->ether_addr_octet[4] > 0xFF || e->ether_addr_octet[5] > 0xFF) 129 e->ether_addr_octet[4] > 0xFF || e->ether_addr_octet[5] > 0xFF) {
130 return (NULL); 130 errno = EINVAL;
131 return (-1);
132 }
131 133
132#ifdef YP 134#ifdef YP
133 char trybuf[sizeof("xx:xx:xx:xx:xx:xx")]; 135 char trybuf[sizeof("xx:xx:xx:xx:xx:xx")];