diff options
author | 2007-04-17 02:07:05 +0000 | |
---|---|---|
committer | 2007-04-17 02:07:05 +0000 | |
commit | 046289bddb3b2f28daaa80fe6bf3c7a52b0c3144 (patch) | |
tree | 0f46d4fd77ff9c06489b50f665b4a54d1e0efcf3 | |
parent | initial bits for the network interface glue. (diff) | |
download | wireguard-openbsd-046289bddb3b2f28daaa80fe6bf3c7a52b0c3144.tar.xz wireguard-openbsd-046289bddb3b2f28daaa80fe6bf3c7a52b0c3144.zip |
point ifreq in the ioctl path at something, so we can void dereferencing
random memory.
-rw-r--r-- | sys/dev/pci/if_vic.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pci/if_vic.c b/sys/dev/pci/if_vic.c index 7474ac6f387..a3f2b967a58 100644 --- a/sys/dev/pci/if_vic.c +++ b/sys/dev/pci/if_vic.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_vic.c,v 1.40 2007/04/14 23:35:35 reyk Exp $ */ +/* $OpenBSD: if_vic.c,v 1.41 2007/04/17 02:07:05 dlg Exp $ */ /* * Copyright (c) 2006 Reyk Floeter <reyk@openbsd.org> @@ -1114,8 +1114,8 @@ int vic_ioctl(struct ifnet *ifp, u_long cmd, caddr_t data) { struct vic_softc *sc = (struct vic_softc *)ifp->if_softc; + struct ifreq *ifr = (struct ifreq *)data; struct ifaddr *ifa; - struct ifreq *ifr; int s, error = 0; s = splnet(); |