diff options
author | 2014-04-18 13:35:31 +0000 | |
---|---|---|
committer | 2014-04-18 13:35:31 +0000 | |
commit | cdff601ac7362f702445f15b6fc2204f9821c627 (patch) | |
tree | 4feae17f573049adb50f3c0443351e736f3d61af | |
parent | More KNF. (diff) | |
download | wireguard-openbsd-cdff601ac7362f702445f15b6fc2204f9821c627.tar.xz wireguard-openbsd-cdff601ac7362f702445f15b6fc2204f9821c627.zip |
If somebody else is already processing the RPC requests on a stream socket,
don't panic, but just return.
tested by nicm@
ok tedu@
-rw-r--r-- | sys/nfs/nfs_socket.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/nfs/nfs_socket.c b/sys/nfs/nfs_socket.c index 6946a2848dc..e5ba9a1d1d7 100644 --- a/sys/nfs/nfs_socket.c +++ b/sys/nfs/nfs_socket.c @@ -1,4 +1,4 @@ -/* $OpenBSD: nfs_socket.c,v 1.104 2014/03/22 06:05:45 guenther Exp $ */ +/* $OpenBSD: nfs_socket.c,v 1.105 2014/04/18 13:35:31 kettenis Exp $ */ /* $NetBSD: nfs_socket.c,v 1.27 1996/04/15 20:20:00 thorpej Exp $ */ /* @@ -1681,7 +1681,7 @@ nfsrv_getstream(struct nfssvc_sock *slp, int waitflag) u_int32_t recmark; if (slp->ns_flag & SLP_GETSTREAM) - panic("nfs getstream"); + return (0); slp->ns_flag |= SLP_GETSTREAM; for (;;) { if (slp->ns_reclen == 0) { |