From: deraadt Date: Fri, 18 Apr 1997 09:30:48 +0000 (+0000) Subject: new socket required if changing NOCONN; fvdl X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=4acdc7b2a84db050db5242718b4bc35bacb1369d;p=openbsd new socket required if changing NOCONN; fvdl --- diff --git a/sys/nfs/nfs_vfsops.c b/sys/nfs/nfs_vfsops.c index 8d78d586c72..2a2820b9270 100644 --- a/sys/nfs/nfs_vfsops.c +++ b/sys/nfs/nfs_vfsops.c @@ -1,4 +1,4 @@ -/* $OpenBSD: nfs_vfsops.c,v 1.17 1997/04/18 09:28:03 deraadt Exp $ */ +/* $OpenBSD: nfs_vfsops.c,v 1.18 1997/04/18 09:30:48 deraadt Exp $ */ /* $NetBSD: nfs_vfsops.c,v 1.46.4.1 1996/05/25 22:40:35 fvdl Exp $ */ /* @@ -466,6 +466,9 @@ nfs_decode_args(nmp, argp) adjsock = !(nmp->nm_flag & NFSMNT_RESVPORT) && (argp->flags & NFSMNT_RESVPORT); #endif + /* Also re-bind if we're switching to/from a connected UDP socket */ + adjsock |= ((nmp->nm_flag & NFSMNT_NOCONN) != + (argp->flags & NFSMNT_NOCONN)); /* Update flags atomically. Don't change the lock bits. */ nmp->nm_flag =