Fix error in vfs_hang_addrlist() that caused file systems to be exported

to more subnets than expected when using netmasks.  From Mike Hibler.
This commit is contained in:
mycroft 1997-04-25 02:43:10 +00:00
parent 1a3df57d81
commit c32418bf82
1 changed files with 2 additions and 2 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: vfs_subr.c,v 1.65 1997/04/23 20:19:45 mycroft Exp $ */
/* $NetBSD: vfs_subr.c,v 1.66 1997/04/25 02:43:10 mycroft Exp $ */
/*
* Copyright (c) 1997 Jason R. Thorpe. All rights reserved.
@ -1370,7 +1370,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)