aboutsummaryrefslogtreecommitdiff
path: root/sys/nfsserver
diff options
context:
space:
mode:
authorSeigo Tanimura <tanimura@FreeBSD.org>2002-05-31 11:52:35 +0000
committerSeigo Tanimura <tanimura@FreeBSD.org>2002-05-31 11:52:35 +0000
commit4cc20ab1f0f3d1126126327aa298ab88c974c53d (patch)
tree9d5f24794525313566896ab89aa860515db344a6 /sys/nfsserver
parentc82593cf2c9a5b4ccd2be043f6c9ccc8af22fcc9 (diff)
downloadsrc-4cc20ab1f0f3d1126126327aa298ab88c974c53d.tar.gz
src-4cc20ab1f0f3d1126126327aa298ab88c974c53d.zip
Notes
Diffstat (limited to 'sys/nfsserver')
-rw-r--r--sys/nfsserver/nfs_srvsock.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/sys/nfsserver/nfs_srvsock.c b/sys/nfsserver/nfs_srvsock.c
index 29c50a0e9043..7091c82cef42 100644
--- a/sys/nfsserver/nfs_srvsock.c
+++ b/sys/nfsserver/nfs_srvsock.c
@@ -714,14 +714,10 @@ nfsrv_send(struct socket *so, struct sockaddr *nam, struct mbuf *top)
int error, soflags, flags;
soflags = so->so_proto->pr_flags;
- SOCK_LOCK(so);
- if ((soflags & PR_CONNREQUIRED) || (so->so_state & SS_ISCONNECTED)) {
- SOCK_UNLOCK(so);
+ if ((soflags & PR_CONNREQUIRED) || (so->so_state & SS_ISCONNECTED))
sendnam = (struct sockaddr *)0;
- } else {
- SOCK_UNLOCK(so);
+ else
sendnam = nam;
- }
if (so->so_type == SOCK_SEQPACKET)
flags = MSG_EOR;
else