From 8e3a6c49433da7ca4fdecc8322b68675f41d2f92 Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Fri, 25 Apr 1997 09:33:25 +0000 Subject: proper mask check; mike@fast.cs.utah.edu --- sys/kern/vfs_subr.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/kern/vfs_subr.c b/sys/kern/vfs_subr.c index 0d2ac94fbc1..10ed04c26ca 100644 --- a/sys/kern/vfs_subr.c +++ b/sys/kern/vfs_subr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vfs_subr.c,v 1.9 1997/04/14 04:23:26 tholo Exp $ */ +/* $OpenBSD: vfs_subr.c,v 1.10 1997/04/25 09:33:24 deraadt Exp $ */ /* $NetBSD: vfs_subr.c,v 1.53 1996/04/22 01:39:13 christos Exp $ */ /* @@ -1365,7 +1365,7 @@ vfs_hang_addrlist(mp, nep, argp) saddr->sa_len = argp->ex_addrlen; if (argp->ex_masklen) { smask = (struct sockaddr *)((caddr_t)saddr + argp->ex_addrlen); - error = copyin(argp->ex_addr, (caddr_t)smask, argp->ex_masklen); + error = copyin(argp->ex_mask, (caddr_t)smask, argp->ex_masklen); if (error) goto out; if (smask->sa_len > argp->ex_masklen) -- cgit v1.2.3