summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorAaron Campbell <aaron@cvs.openbsd.org>2000-06-18 03:26:52 +0000
committerAaron Campbell <aaron@cvs.openbsd.org>2000-06-18 03:26:52 +0000
commitd663a3c12577cd5b5dd86027ad7df5052d45c1b7 (patch)
treec6b36dcb1cd53fc1c839ebf7dda07d15a63ba054 /sys/dev
parent71cf1ed8e1bd078ae972b17586259ab89523a974 (diff)
Fix an off-by-one error that caused uvm_fault() whenever changing any an(4)
configuration options with ancontrol(8). Now USENIX attendees can use the wireless setup :-)
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/ic/an.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/ic/an.c b/sys/dev/ic/an.c
index 688ab926605..7a24e2d0c94 100644
--- a/sys/dev/ic/an.c
+++ b/sys/dev/ic/an.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: an.c,v 1.2 2000/04/06 04:01:49 mickey Exp $ */
+/* $OpenBSD: an.c,v 1.3 2000/06/18 03:26:51 aaron Exp $ */
/*
* Copyright (c) 1997, 1998, 1999
@@ -797,7 +797,7 @@ an_setdef(sc, areq)
case AN_RID_GENCONFIG:
cfg = (struct an_ltv_genconfig *)areq;
- ifa = ifnet_addrs[ifp->if_index - 1];
+ ifa = ifnet_addrs[ifp->if_index];
sdl = (struct sockaddr_dl *)ifa->ifa_addr;
bcopy((char *)&cfg->an_macaddr, (char *)&sc->arpcom.ac_enaddr,
ETHER_ADDR_LEN);