summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1997-04-18 09:58:12 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1997-04-18 09:58:12 +0000
commit45f1bac6ec3b2b1d5579cb1a510db13085c7c319 (patch)
tree348ff87386eeacca8bf4440611c08a401ccc522d
parent40933851a3810e72a58d1275f161f56b7384dffa (diff)
avoid possible *NULL; fvdl
-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++;