summaryrefslogtreecommitdiff
path: root/sys/net
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1999-07-02 17:46:56 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1999-07-02 17:46:56 +0000
commit8a2e4c5d130aa673eccf17f0644be4b5a51b0306 (patch)
treebab815999763a1de7dacbb826007af7e8f28ce44 /sys/net
parente655a29bb21e3f796270fa61f8f492ffadead55b (diff)
do not use fuword()
Diffstat (limited to 'sys/net')
-rw-r--r--sys/net/if_spppsubr.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/sys/net/if_spppsubr.c b/sys/net/if_spppsubr.c
index 97404927160..c1986846250 100644
--- a/sys/net/if_spppsubr.c
+++ b/sys/net/if_spppsubr.c
@@ -17,7 +17,7 @@
*
* Version 2.6, Tue May 12 17:10:39 MSD 1998
*
- * $Id: if_spppsubr.c,v 1.1 1999/07/01 23:10:40 deraadt Exp $
+ * $Id: if_spppsubr.c,v 1.2 1999/07/02 17:46:55 deraadt Exp $
*/
#include <sys/param.h>
@@ -3918,14 +3918,6 @@ sppp_params(struct sppp *sp, u_long cmd, void *data)
struct ifreq *ifr = (struct ifreq *)data;
struct spppreq spr;
- /*
- * ifr->ifr_data is supposed to point to a struct spppreq.
- * Check the cmd word first before attempting to fetch all the
- * data.
- */
- if ((subcmd = fuword(ifr->ifr_data)) == -1)
- return EFAULT;
-
if (copyin((caddr_t)ifr->ifr_data, &spr, sizeof spr) != 0)
return EFAULT;