summaryrefslogtreecommitdiffstats
path: root/sys/nfs/nfs_socket.c
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>1997-04-18 09:58:11 +0000
committerderaadt <deraadt@openbsd.org>1997-04-18 09:58:11 +0000
commitaf709a3e912a01f58c63404dbfa1bd2d2e3953d8 (patch)
treef2a6732f8bce669f46418ea387560f43105c6570 /sys/nfs/nfs_socket.c
parentindent (diff)
downloadwireguard-openbsd-af709a3e912a01f58c63404dbfa1bd2d2e3953d8.tar.xz
wireguard-openbsd-af709a3e912a01f58c63404dbfa1bd2d2e3953d8.zip
avoid possible *NULL; fvdl
Diffstat (limited to '')
-rw-r--r--sys/nfs/nfs_socket.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/nfs/nfs_socket.c b/sys/nfs/nfs_socket.c
index c88356871a8..aa86db8c7ac 100644
--- a/sys/nfs/nfs_socket.c
+++ b/sys/nfs/nfs_socket.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: nfs_socket.c,v 1.8 1996/12/24 20:14:29 dm Exp $ */
+/* $OpenBSD: nfs_socket.c,v 1.9 1997/04/18 09:58:11 deraadt Exp $ */
/* $NetBSD: nfs_socket.c,v 1.27 1996/04/15 20:20:00 thorpej Exp $ */
/*
@@ -1216,7 +1216,8 @@ nfs_rephead(siz, nd, slp, err, cache, frev, mrq, mbp, bposp)
}
}
*mrq = mreq;
- *mbp = mb;
+ if (mrq != NULL)n
+ *mbp = mb;
*bposp = bpos;
if (err != 0 && err != NFSERR_RETVOID)
nfsstats.srvrpc_errs++;